White spaces at the end of an item are impossible [SOLVED]

Off-topic posts of interest to the "Everything" community.
Post Reply
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

White spaces at the end of an item are impossible [SOLVED]

Post by Thy Grand Voidinesss »

It seems that Everything or filemanagers like FreeCommander or Windows Explorer nor programs like XnView MP or 7-Zip allow for re-naming of a folder or file to something like

Code: Select all

test_
where that

_


sign stands in for a single ordinary space sign [in order to illustrate my point in this post]

Why is that?
Last edited by Thy Grand Voidinesss on Thu Jun 06, 2024 10:09 am, edited 1 time in total.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: White spaces at the end of an item are impossible

Post by horst.epp »

What should be the benefit of having a space on the end ?
Windows API calls strip blanks on the end.
You can create such names if you add "" around.
So in Total Commander or other file managers I create "Test1 "
In Everythings folder view you can simply add a space on the end and it will be preserved.
______________________________________________________
Windows 11 Home x64 Version 23H2 (OS Build 22631.3672)
Everything 1.5.0.1378a (x64), Everything Toolbar 1.3.3
TC 11.03 x64 / x86
XYplorer 26.00.0303
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: White spaces at the end of an item are impossible

Post by void »

To disable trimming when renaming:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    rename
  • Select: rename_trim
  • Set the value to: false
  • Click OK.
rename_trim
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: White spaces at the end of an item are impossible

Post by therube »

Why is that?
Because having a space as the last character in a file name is perfectly valid.

But, while something may be perfectly valid, it is quite possible that any number of, or most utilities will not "correctly" handle such "oddities".


BTW, my username here in these forums is not "therube", but really, "therube ".
(Just kidding ;-).)
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: White spaces at the end of an item are impossible

Post by horst.epp »

therube wrote: Mon Jun 03, 2024 3:07 pm
Why is that?
Because having a space as the last character in a file name is perfectly valid.
I didn't ask if this is valid.
The question is what is the purpose having a space at the end.
A space on the beginning makes sense.
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: White spaces at the end of an item are impossible

Post by Thy Grand Voidinesss »

horst.epp wrote: Mon Jun 03, 2024 3:53 pm
therube wrote: Mon Jun 03, 2024 3:07 pm
Why is that?
Because having a space as the last character in a file name is perfectly valid.
I didn't ask if this is valid.
The question is what is the purpose having a space at the end.
[...]
Very precise order of multiple similarly named files

There is this one certain task that I do often for which an imperative would be to start seeing not e.g.

a
test a
test
z


but

a
test
test a
z


and in order to achieve this a pause sign at the end of
test
is required

I also always stood behind a philosophy that if a user wants to utilize whatever odd / niche name then no program such prevent from achieving this by automatically renaming it without user's consent. And if it would lead to a case of trying to utlize an illegal character then user should be informed about it and not be simply pacified with an auto-correction / ommision being applied

void wrote: Sun Jun 02, 2024 11:29 pm To disable trimming when renaming:
[...]
Yes, thank you. Switching to

Tools > Options > Advanced > rename_trim > false

allowed me to add a pause at the end of and extension-less file and to a folder


But as it is now created a problem withing FreeCommander and Windows Explorer [https://freecommander.com/forum/viewtopic.php?t=13856] and probably many others programs - just in case I would ever need to mitigate it en masse: what would a Bookmark for finding such items look like?
Last edited by Thy Grand Voidinesss on Thu Jun 06, 2024 9:13 am, edited 1 time in total.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: White spaces at the end of an item are impossible

Post by void »

Search for:

folder:"* "
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: White spaces at the end of an item are impossible

Post by Thy Grand Voidinesss »

If I am not mistaken, the above shows every folder that has a pause sign anywhere in it, and not just at its very end
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: White spaces at the end of an item are impossible

Post by void »

Yes, that will occur if you disable Tools -> Options -> Search -> Match whole filename when using wildcards.

Please try the following search instead:

folder:endwith:" "
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: White spaces at the end of an item are impossible

Post by Thy Grand Voidinesss »

Both

Code: Select all

folder:endwith:" "
and

Code: Select all

file:endwith:" "
seem to work. Is there a way to use / merge them in one expression at the sam time? I took a wild guess using

Code: Select all

item:endwith:" "
but it does not work
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: White spaces at the end of an item are impossible

Post by void »

endwith:" "

endwith:
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: White spaces at the end of an item are impossible

Post by Thy Grand Voidinesss »

This seems to work A-OK

Thank you
Post Reply