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.
A merge request for this feature was started @ https://invent.kde.org/system/dolphin/-/merge_requests/289
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/636
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
Given that now dolphin can display multi-line filenames (422998), and can handle renaming those reasonably (452587), should this issue be considered fixed?
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!
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!
*** Bug 501303 has been marked as a duplicate of this bug. ***
(In reply to fanzhuyifan from comment #4) > Given that now dolphin can display multi-line filenames (422998), and can > handle renaming those reasonably (452587), should this issue be considered > fixed? As a user, I don't consider the issue fixed, because while dolphin technically can add newlines to filenames just fine, and can display those newlines nicely... the fact is that most users do not normally want to include newlines in their filenames. I understood this issue to mean that Dolphin should remove those newlines automatically when the user pastes the text that contains it.
fwiw thunar and nautilus all keep newlines when pasting in renaming -- maybe being able to create any filename that the file system allows is a useful feature.
(In reply to fanzhuyifan from comment #9) > fwiw thunar and nautilus all keep newlines when pasting in renaming -- maybe > being able to create any filename that the file system allows is a useful > feature. I really can't think of any situation where one would want newlines in their filenames when pasting. The filesystem does allow for it as you said, and so that's probably why other GUI programs let you keep them. It might make sense to have a checkbox option to allow newlines in filenames when renaming, with the default being disabled, if the current behaviour makes sense for some users. But I think most users would not want to keep the newlines.