There has been a recent merge request that simply removes trailing spaces (https://invent.kde.org/frameworks/kio/-/merge_requests/98). I'd prefer a solution where a warning is displayed (inline), when hitting the save button (see https://invent.kde.org/frameworks/kio/-/merge_requests/98#note_93873).
How about a popup dialog like this? > The name has trailing space(s), are you sure? > Trailing spaces can cause issues on Windows in shared environments. > > [X] Automatically remove trailing whitespace in the future (Checkbox, checked by default) > > Button 1: [Cancel] (Returns to rename window) > Button 2: [Continue] (Keep trailing space) > Button 3: [Trim trailing space]
That might be an option, although the merge request has been started to remove those pop ups if I am not mistaken.
Showing multiple dialog son top of one another is generally not super user-friendly. Having the message appear only when saving is reasonable.
I can look into this when I get a moment of spare time.
Thanks and no rush :)
With https://invent.kde.org/frameworks/kio/-/merge_requests/180 We now have a delay before we check filename validity, this should help fix this one.