Bug 468234 - Trim trailing/leading whitespace from filenames when renaming file
Summary: Trim trailing/leading whitespace from filenames when renaming file
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-07 09:19 UTC by ktchidev@gmail.com
Modified: 2023-04-07 09:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ktchidev@gmail.com 2023-04-07 09:19:56 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Rename a file and put a space at the start or end

OBSERVED RESULT
The filename will be saved as is, with the trailing whitespace

DESIRED RESULT
Users almost certainly don't want to have files with trailing/leading whitespace, and this was likely a typo. This can cause issues with lots of (poorly written) shell scripts, and confusion with end users.

I think it would be significantly more user-friendly if the whitespace was trimmed. Advanced users who *really do* want to create a file with trailing/leading whitespace can still do so via the terminal.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.15.104-2-MANJARO (64-bit)
(available in About System)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

It appears this is already fixed for *creating* a file, but wasn't implemented for renaming a file.