Hello, Johannes
Unless I misread your message, I thought that Krusader already did what you ask, without any "Useractions"

As an experiment, I went to a directory that contains Krusader's source code, and I did the following:
1. Selected all the directories and files.
2. Right click and select "Copy to Clipboard" from the context menu.
3. Paste the results directly into this email.  See below...

file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/build
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/doc
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/doc-extras
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/iso
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/krArc
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/krusader
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/pics
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/AUTHORS
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/ChangeLog
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/CMakeLists.txt
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/COPYING
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/createdist.sh
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/CREDITS
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/FAQ
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/INSTALL
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/Krusader.kdevelop
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/krusader.lsm
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/Messages.sh
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/porting_todo.txt
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/README
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/SVNNEWS
file:///home/steve/CVS/Assorted-CVS-Modules/k/krusader/TODO

This is with Krusader version "2.5.0-beta "Clear Skies""

Now, is the menu option "Copy to Clipboard" as clear as the option in Total Commander? My opinion is that it is not...

I just tried changing
"addAction(i18n("Copy to Clipboard"))->setData(QVariant(COPY_CLIP_ID));"

to

"addAction(i18n("Copy Names With Path To Clipboard"))->setData(QVariant(COPY_CLIP_ID));"

in the source code file "krusader/krusader/Panel/krpopupmenu.cpp"

I then recompiled and installed Krusader. The result was the menu option now reads "Copy Names With Path To Clipboard"

I am NOT a developer or programmer, but if you are able to compile Krusader from source, I can help you do what I did.


I put a screenshot here:
<http://www.afolkey2.us/gallery3/index.php/Assorted/Krusader-CopyNamesWithPathToClipboard>

to show you the results.

Keep in mind that this does not involve "Useractions"

If I totally misunderstood your request, I do apologize.

Steven P. Ulrick

On 10/11/2016 07:20 AM, CrucialKrusader wrote:

In File Managers like Total Commander for Windows, some of the most
important use cases for me is 'copy names to clipboard' and its variants:


<https://lh3.googleusercontent.com/-JK4YXlf1--k/V_zTzmsGd3I/AAAAAAAAUCY/pmqL1mdPCuoZdxTyZG76xjKfpR6yZ9ITgCLcB/s1600/TotalCommander_CopyToClipboard_UseCases.jpg>



When you choose the menu item shown on this screenshot, the following
information is copied into the clipboard (consider that these are (1)
multiple items and (2) files and folders):

f:\cygwin64\etc\apache2\conf.d\
f:\cygwin64\etc\apache2\extra\
f:\cygwin64\etc\apache2\original\
f:\cygwin64\etc\apache2\magic
f:\cygwin64\etc\apache2\httpd.conf
f:\cygwin64\etc\apache2\mime.types

In the current version of Krusader, these important use cases seem to be
neglected.

What I could find out so far is that there's a sample User Action named
"filename_to_clipboard" contained in
|~/.kde/share/apps/krusader/useractions.xml and available either via
Menu (User Actions > Samples) or via shortcut (|Ctrl+Alt+C|||).

|

<action name="filename_to_clipboard">
 <title>&amp;Copy current item to clipboard</title>
 <tooltip>Copy current item to clipboard</tooltip>
 <icon>editpaste</icon>
 <category>Samples</category>
 <command>%_Clipboard("%aCurrent%")%</command>
 <defaultshortcut>Ctrl+Alt+C</defaultshortcut>
</action>


But this (slightly hidden) User Action seems to work only with single
files or folders.

Besides, the desciption "Copy current item to clipboard" is mistakable:
Will the files/folder be copied into the clipboard or just the name?

I would like to ask for a hint and to make a suggestion. :)

1.) Question: Is there a way to make a User Action behave like Total
Commander's Use Cases 'Copy Selected Names To Clipboard' and 'Copy Names
With Path To Clipboard', i.e. to copy the names of one or multiple files
or folders into the clipboard (either with path or without)?

2.) Suggestion: Please add to the default Krusader distribution more
versatile versions of these these Use Cases and make them more prominent
by rising them up to default menu entries.

Thanks and keep up the good work!
Johannes

--
You received this message because you are subscribed to the Google
Groups "krusader-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to krusader-users+unsubscr...@googlegroups.com
<mailto:krusader-users+unsubscr...@googlegroups.com>.
To post to this group, send email to krusader-users@googlegroups.com
<mailto:krusader-users@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/krusader-users/99cfce1e-8ff6-4c50-8ce8-c2ffbfc84574%40googlegroups.com
<https://groups.google.com/d/msgid/krusader-users/99cfce1e-8ff6-4c50-8ce8-c2ffbfc84574%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"krusader-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to krusader-users+unsubscr...@googlegroups.com.
To post to this group, send email to krusader-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/krusader-users/7c1bd393-3907-16fb-1f4e-34804ae175a2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to