Summary: | File renaming with newlines does not work very well | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Ralf Jung <post> |
Component: | view-engine: general | Assignee: | fanzhuyifan |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 4wy78uwh, fanzhuyifan, invertedrat, kde-bugs, kfm-devel |
Priority: | NOR | ||
Version: | 23.08.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=445292 https://bugs.kde.org/show_bug.cgi?id=422998 https://bugs.kde.org/show_bug.cgi?id=444747 |
||
Latest Commit: | https://invent.kde.org/system/dolphin/-/commit/8297e0a8c97c6e1f6d46b9ecc9c5f495f294d5b8 | Version Fixed In: | |
Sentry Crash Report: |
Description
Ralf Jung
2022-04-13 18:02:52 UTC
*** Bug 412974 has been marked as a duplicate of this bug. *** (In reply to fanzhuyifan from comment #1) > *** Bug 412974 has been marked as a duplicate of this bug. *** 412974 is a special case where the filename ends in the new line character. Right now the behavior is as follows: When rename is started, only a single line is displayed. (Only in icons view, can the user can use up-down keys to scroll through the different lines. In other views up down keys changes the file being edited) As soon as a deletion is made, all the lines are displayed in a multiline text box. (this works in all views). How do we want to change this behavior? Should we display a multiline text box showing all lines when the user enters edit mode? A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/641 *** Bug 422997 has been marked as a duplicate of this bug. *** Git commit 8297e0a8c97c6e1f6d46b9ecc9c5f495f294d5b8 by Méven Car, on behalf of Yifan Zhu. Committed on 08/11/2023 at 12:10. Pushed by meven into branch 'master'. Improve size adjustment of itemlist editor Currently multi-line file names in dolphin only display a single line when renaming. This commit ensures multi-line filenames have all lines displayed by calling `document()->adjustSize` in `KItemListRoleEditor::autoAdjustSize`, and by calling the latter function after setting up the editor. M +1 -0 src/kitemviews/kstandarditemlistwidget.cpp M +1 -0 src/kitemviews/private/kitemlistroleeditor.cpp M +5 -5 src/kitemviews/private/kitemlistroleeditor.h https://invent.kde.org/system/dolphin/-/commit/8297e0a8c97c6e1f6d46b9ecc9c5f495f294d5b8 (In reply to fanzhuyifan from comment #3) > How do we want to change this behavior? Should we display a multiline text > box showing all lines when the user enters edit mode? I believe so. Has that ever been suggested as an FR here? |