5

How to configure file manager Krusader to copy names or full paths for selected files / directories like in Total Commander?

Related question: Shortcut to select / copy current directory in Krusader file manager

2 Answers 2

6

Krusader -> Useractions -> Manage User Actions...

Add two new user actions with the following configuration:

Identifier: Copy Names
Title: &Copy Names
Command: %_Clipboard("%aList("Selected", "\n", "Yes", "", "No")%")%
Shortcut: Ctrl + Alt + N

Identifier: Copy Paths
Title: &Copy Paths
Command: %_Clipboard("%aList("Selected", "\n", "", "", "No")%")%
Shortcut: Ctrl + Alt + P

Krusader -> Settings -> Configure Keyboard Shortcuts...

Remove duplicated Ctrl + Alt + P shortcut from 'Play/Pause Job' action
or user other shortcut.

To check config select several files/directories. Press Ctrl + Alt + N to copy to clipboard names, Ctrl + Alt + P to copy paths.

Description for commands config from Krusader UserActions:

List - replaced by a list of all <first parameter>
    Parameter: Which items; either “All”, “Selected”, “Files” or “Dirs”
    Parameter (optional): Separator between the items. Default: “ ”
    Parameter (optional): Omit the current path. Default: no
    Parameter (optional): Filtermask (for all but “Selected”).
                          Default: *
    Parameter (optional): Automatic escape spaces. Default: yes
Select - manipulates the selection in a panel
    Parameter: Filtermask
    Parameter (optional): manipulate in which way; either “Set”,
                          “Add” or “Remove”. Default: “Set”
Clipboard - manipulates the clipboard
    Parameter: The text that should go to the clipboard 
               (you may want to use “%aCurrent%” here)
    Parameter (optional): Append the text to the current content
                          of the clipboard with this separator        

Related links:

0

Thank you Anton!

I was so annoyed I didn't have this convenient TC shortcut in krusader. Following your instructions, in Kubuntu 24.04 I stumbled upon

Ctrl-Alt-C in Krusader -> Useractions -> Examples:

"Dateipfad des ausgewählten Eintrags kopieren (maskiert Leerzeichen)"

which translates roughly to (sorry, my Desktop is in German):

‘Copy file path of the selected entry (masks spaces)’

It was already there with the standard installation, maybe it was finally added sometime since 2022 :)

2
  • raphha2, thanks for the feedback. I sow this default action for getting the full path. By default it does not have Ctrl + Alt + C shortcut. It should be assigned. The problem with this action that it cannot copy paths for multiple selected files, only for one. Commented Sep 7 at 6:14
  • Ah ok, I didn't understand the multi-file-info-at-once aspect, that's even cooler, it just never occurred to me that I needed it :)
    – raphha2
    Commented Sep 8 at 13:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .