Bug 445075 - Add shortcut to copy only the filename to the clipboard
Summary: Add shortcut to copy only the filename to the clipboard
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: shortcuts (other bugs)
Version First Reported In: 2.7.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-06 13:17 UTC by Dan Dascalescu
Modified: 2021-11-20 18:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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").