Space character trimming in Find Files
Posted: 12 Mar 2014 15:22
v13.80.0111 started to trim leading and trailing spaces in Find Files, saying that it's expected behavior.
I think that's half-right.
If you say that file names that start with spaces are not allowed by the OS in the first place, so it makes sense to trim leading spaces from the Standard search - that's fine and correct.
However, spaces are absolutely allowed elsewhere in the filename, so trimming trailing spaces from the search term is not expected behavior.
If we have the following files:
Theory of Stuff.doc
Thesis for exobiology.doc
Thebes - and other places you'll never go.pdf
The Autobiography of David Hasselhoff.pdf
It's perfectly reasonable to do a search for "the " (without quotes) in order make sure we only catch the file(s) we want, and exclude the others.
It doesn't make sense to add an additional procedure for trailing spaces, because they can be so commonly used in a search. (Also, adding quotes doesn't work anyway).
Trimming leading spaces is fine. But I think trailing spaces should be allowed as normal and not trimmed. It makes sense to leave that as it was.
I think that's half-right.
If you say that file names that start with spaces are not allowed by the OS in the first place, so it makes sense to trim leading spaces from the Standard search - that's fine and correct.
However, spaces are absolutely allowed elsewhere in the filename, so trimming trailing spaces from the search term is not expected behavior.
If we have the following files:
Theory of Stuff.doc
Thesis for exobiology.doc
Thebes - and other places you'll never go.pdf
The Autobiography of David Hasselhoff.pdf
It's perfectly reasonable to do a search for "the " (without quotes) in order make sure we only catch the file(s) we want, and exclude the others.
It doesn't make sense to add an additional procedure for trailing spaces, because they can be so commonly used in a search. (Also, adding quotes doesn't work anyway).
Trimming leading spaces is fine. But I think trailing spaces should be allowed as normal and not trimmed. It makes sense to leave that as it was.