I observed that it can cause confusion when files or folders contain leading or trailing whitespace characters. Suggestion: Show a warning when a user is about to create a file or folder with leading or trailing whitespace. The warning could contains three options: 1) Strip spaces automatically 2) Continue anyway 3) Go back to edit the name again
I worry that the sorts of users who don't notice unwanted leading or trailing spaces are highly likely to blindly click through warning/confirmation dialog boxes.
This is one reason to make the "Strip spaces automatically" option the default one.
How about making the leading/trailing spaces visible/recognizable, like klipper does?
> How about making the leading/trailing spaces visible/recognizable, like klipper does? Ah, I didn't know that klipper does this (for leading/trailing characters I see space, tab and newline symbols with blue font color). Sounds like a possible solution.
I get bitten by this all the time. Dolphin happily creates folders with trailing spaces, but then *other* applications can't write to them and the error messages generated are non-obvious. Dolphin should strip trailing spaces by default. Or it should be settable.
Ah, I just fixed this, in a form. *** This bug has been marked as a duplicate of bug 421075 ***