Bug 444747

Summary: automatically remove newlines from filenames when renaming
Product: [Applications] dolphin Reporter: Jonas <jonas743>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: fanzhuyifan, kfm-devel, kishore96, nate, thomas.surrel
Priority: NOR Keywords: usability
Version: 21.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=452587
https://bugs.kde.org/show_bug.cgi?id=422998
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonas 2021-11-01 02:07:22 UTC
I often download pdfs and then rename them in dolphin with the title of the document that I either copied from a website or from the document itself. When doing this I regularly end up with unwanted linebreaks in the filename, for two reasons:
* when selecting a line of text by double clicking in the browser and then copying with ctrl+c, the string that ends up in the clipboard is usually terminated with a newline
* when copying the title out of the pdf itself, it is often broken in two lines if the title is too long for one line
I don't want to have linebreaks in a filename in any situation, and can't think of a use case where they're desirable. Therefore I suggest that dolphin automatically eats all linebreaks that are inserted when renaming files via F2.
Comment 1 Thomas Surrel 2021-11-22 10:28:34 UTC
A merge request for this feature was started @ https://invent.kde.org/system/dolphin/-/merge_requests/289
Comment 2 Bug Janitor Service 2023-10-22 19:05:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/636
Comment 3 fanzhuyifan 2023-10-24 10:32:50 UTC
Git commit 8ef3c7bc42bad4397bed0711f4317ebad9c0f8f1 by Yifan Zhu.
Committed on 23/10/2023 at 19:09.
Pushed by meven into branch 'master'.

Display newline in filename as Unicode line break
Related: bug 422998

M  +13   -2    src/kitemviews/kstandarditemlistwidget.cpp
M  +7    -0    src/kitemviews/kstandarditemlistwidget.h

https://invent.kde.org/system/dolphin/-/commit/8ef3c7bc42bad4397bed0711f4317ebad9c0f8f1
Comment 4 fanzhuyifan 2023-11-09 04:14:58 UTC
Given that now dolphin can display multi-line filenames (422998), and can handle renaming those reasonably (452587), should this issue be considered fixed?
Comment 5 Bug Janitor Service 2023-11-24 03:45:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-12-09 03:46:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!