Bug 328923

Summary: Press rename key twice to select extension
Product: [Applications] krusader Reporter: Cade <ahx2323>
Component: generalAssignee: Nikita Melnichenko <nikita+kde>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: krusader-bugs-null, nikita+kde
Priority: NOR    
Version First Reported In: 2.4.0-beta3 "Single Step"   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Cade 2013-12-17 21:37:20 UTC
Press rename key twice for select extension

Reproducible: Always

Steps to Reproduce:
1. Open Krusader.
2. Press rename key (default F9) for rename file under cursor.
    File name will be selected without extension.
3. Press rename key again.
Actual Results:  
Nothing happens.

Expected Results:  
Select file name and extension.
4. Press rename key again for select only name (without extension).
5. Press rename key again for select name and extension.
6. Repeat steps 4 and 5 for toggle selection of "only name" and "name and extension".
Comment 1 Nikita Melnichenko 2020-06-30 06:00:05 UTC
Git commit d2d1affa75d0518efd062c4b53be4aabcd5733b6 by Nikita Melnichenko.
Committed on 30/06/2020 at 05:44.
Pushed by melnichenko into branch 'master'.

Added cycling through file name part selections when renaming files

Implemented a feature that allows cycling through various name
and extension selections in the file-renaming editor by consecutively
hitting the rename shortcut (F2 by default).

For simple names like "notes.txt", it will cycle through "notes.txt",
"notes" and "txt". For more complex names like "archive.tar.xz", it will
cycle through "archive.tar.xz", "archive", "archive.tar", "xz" and "tar.xz".
The feature will help users to quickly select part of the name they need
to rename.

In addition, fixed the warning appeared when consecutively hitting
the rename shortcut:
warning default unknown@0 # edit: editing failed

ADDED: Cycling through file name part selections when renaming files
GUI: Added cycling through file name part selections when renaming files

Discussion: https://invent.kde.org/utilities/krusader/-/merge_requests/13

M  +16   -2    krusader/Panel/PanelView/krinterbriefview.cpp
M  +16   -2    krusader/Panel/PanelView/krinterdetailedview.cpp
M  +99   -6    krusader/Panel/PanelView/krviewitemdelegate.cpp
M  +11   -0    krusader/Panel/PanelView/krviewitemdelegate.h

https://invent.kde.org/utilities/krusader/commit/d2d1affa75d0518efd062c4b53be4aabcd5733b6
Comment 2 Nikita Melnichenko 2020-06-30 06:34:59 UTC
As you see from the commit message (https://invent.kde.org/utilities/krusader/-/commit/d2d1affa75d0518efd062c4b53be4aabcd5733b6), I've implemented the feature in an extended way, allowing selection of the extension too. However, during the discussion on the merge request someone mentioned that having extra selections in the cycle may not be convenient for everyone. Let us know whether it satisfies your needs or we need to keep the wish open in hope that somebody implements the exact way proposed in the description.
Comment 3 Bug Janitor Service 2020-07-15 04:33:08 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 4 Bug Janitor Service 2020-07-30 04:33:12 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!