[dolphin] [Bug 452587] New: File renaming with newlines does not work very well

Ralf Jung bugzilla_noreply at kde.org
Wed Apr 13 19:02:52 BST 2022


https://bugs.kde.org/show_bug.cgi?id=452587

            Bug ID: 452587
           Summary: File renaming with newlines does not work very well
           Product: dolphin
           Version: 21.12.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: post at ralfj.de
                CC: kfm-devel at kde.org
  Target Milestone: ---

SUMMARY

I often copy-paste the title of a PDF document into the filename so that I can
easily tell what the file contains. However, if the title does not fit on a
single line in the document (which is most of the time), that inadvertently
inserts a newline into the filename that I then have to remove. The Dolphin
rename logic does not handle newlines very well (and over the last year, this
got worse).


STEPS TO REPRODUCE
1. Copy-paste some title with a newline into it into the filename
2.  Try to rename the file in dolphin to remove the filename

OBSERVED RESULT

Only one of the multiple lines is ever actually shown while renaming, the other
lines are cut off.
Navigating the cursor around this multi-line filename does not work very well.
The up/down arrow keys navigate to neighboring files, so to navigate the
multiple lines in the filename one has to use just the left/right arrow keys.



EXPECTED RESULT
I am not sure what the best way to handle this would be. IMO it would make
sense to just remove newlines when I Ctrl-V some text into the filename -- one
basically never wants a newline in a filename anyway.
Alternatively, maybe there is a way to make the file rename mode better support
filenames with newlines.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-4-amd64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1505M v5 @ 2.80GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P530

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list