Summary: | When renaming files the highlighted part of the filename before the extension behaves strangely. | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Georgiy Treyvus <georgiytreyvus> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | tsujan2000 |
Priority: | NOR | ||
Version: | 4.10.5 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/d55211687cc002e3650aa286b09523186a21a510 | Version Fixed In: | 4.11.1 |
Sentry Crash Report: |
Description
Georgiy Treyvus
2013-08-23 22:31:52 UTC
Thanks for the suggestion. I don't think that there is any straightforward way to implement the behavior you are suggesting. It violates the property that there is always a well-defined cursor position, and that Left/Right change this position by one. Therefore, one would have to write a new text editing widget that supports the behavior you want. AFAIK, those provided by Qt and kdelibs do not support such a thing. Interestingly, it works on Konqueror URL input line. Pressing the cursor keys places the cursor at the begin or end of the selection and cancels it. Actually, it works for me everywhere (even in plain QLineEdit), except in the Dolphin inline rename box. Thanks Christoph, I wasn't aware of that. However, it seems that the K/QTextEdit which we use does not support this feature. Git commit d55211687cc002e3650aa286b09523186a21a510 by Christoph Feck. Committed on 25/08/2013 at 15:40. Pushed by cfeck into branch 'KDE/4.11'. Move cursor to begin/end of selection before canceling it Makes Left/Right keys consistent with QLineEdit behavior. FIXED-IN: 4.11.1 REVIEW: 112256 M +16 -0 dolphin/src/kitemviews/private/kitemlistroleeditor.cpp http://commits.kde.org/kde-baseapps/d55211687cc002e3650aa286b09523186a21a510 This isn't directly related to this (fixed) bug, but I think something similar should be done for the folder view plasmoid and even for Kate. As for Kate, that could be a matter of opinion. BTW, with rtl strings as file names, isRightToLeft() could be used as an extra condition. (In reply to comment #6) > This isn't directly related to this (fixed) bug, but I think something > similar should be done for the folder view plasmoid and even for Kate. As > for Kate, that could be a matter of opinion. Then please tell the FolderView/Kate people about that. It's very unlikely that they will read the comments for Dolphin bug reports ;-) > Then please tell the FolderView/Kate people about that.
OK, thanks. I'll do so.
Please also take the rtl case into consideration.
(In reply to comment #8) > Please also take the rtl case into consideration. Please do not report multiple problems in one bug report, or new problems in a report that is already closed. This makes it impossible to keep track of the things that still need to be done, considering that only very few people are working on Dolphin in their spare time. |