[Enhancement] When creating or renaming a folder/file, if file name is >255 characters, show a caution note below the text box (a note similar to if you include a space before or after the file name)
Version information
- Thunar 4.20.7
- openSUSE Tumbleweed snapshot 20260303
Steps to reproduce
- create a new file or rename an existing file
- type a file name that is obviously too long e.g. the MD5 hash for an empty file repeated 8+ times
- notice how there's zero indication what you typed is in fact too long, required you to instead press enter and "hope for the best" (...and if it was too long, promptly kick yourself for not having copied your entered text because of issue #1809 (closed))
Current behavior
There's zero indication while entering a file name if what you've typed is too long
Expected outcome
The same sort of below-the-text box notes used if you include invalid characters e.g. / should be also used if you type a file name that's too long.
UPDATE: Since it's come to my attention that there are in fact file systems that support longer than 255 character file names, it'd probably be better to treat it like how it currently behaves if you put a space at the beginning or end where it gives a caution symbol and corresponding note below the text box, but still lets you rename the file if you so wish.
Additional information
If this gets implemented, be mindful of the inconsistent file name/filename(s) spelling in the existing below-the-text box notes (see issue #1811 (moved))
In theory, if this also greys out the Create or Rename button, then it would negate the need for #1809 (closed) but I wasn't sure if the 255 character limit is a universal Linux thing or just a file system thing e.g. maybe there are other file systems that don't have the 255 character limit?
Also I made a mock-up "fake" screenshot (this if with the "error" symbol and greyed-out "Create" button however rather than the more appropriate "caution" symbol and non-greyed out "Create" button):
