Bug 445075

Summary: Add shortcut to copy only the filename to the clipboard
Product: [Applications] krusader Reporter: Dan Dascalescu <ddascalescu+kde>
Component: shortcutsAssignee: Krusader Bugs Distribution List <krusader-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: krusader-bugs-null, toni.asensi
Priority: NOR    
Version First Reported In: 2.7.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dan Dascalescu 2021-11-06 13:17:24 UTC
I often want to copy just the filename from the panel, e.g. in order to paste it in the terminal window opened in the same directory.

This seems to be impossible in Krusader. The only keybinding I found at https://docs.kde.org/trunk5/en/krusader/krusader/key_bindings.html to copy files was Ctrl+Alt+C. but that copies the full path to the file, which is unnecessary and unwieldy in the scenario above.

Note also that Ctrl+C also copies the full path, but is not listed on that page.

I've looked into adding a User Action, but https://docs.kde.org/trunk5/en/krusader/krusader/useractions.html didn't list where to find internal commands such as the %aColSort("Ext")% that I see in on of the predefined user actions. Googling for "%aColSort("Ext")%" only returned some XML file from GitHub, so it seems the documentation is missing here, or not easy to find.
Comment 1 Toni Asensi Esteve 2021-11-20 18:26:56 UTC
Hello, Dan. If it may be useful, in those cases I press F2, Ctrl+C to copy a name to the clipboard. If I'm using Krusader's embedded terminal, I may use Ctrl+Enter ("Insert current file / folder name without path to current command line position").