Page 1 of 1

Copy multiple filenames from the document selector

Posted: Wed Mar 22, 2023 6:47 pm
by IanOfYork
Right clicking on a file in the document selector currently allows the filename to be copied to the clipboard.

Please add a matching option to the context menu for when more than one file has been selected.
This would then allow us to copy the list of all of the files included in a workspace.

Alternatively (or better still, also) add an option to the context menu for the area in the document selector that is outside the list of files which will copy the complete list of filenames.

Re: Copy multiple filenames from the document selector

Posted: Wed Mar 22, 2023 7:52 pm
by AmigoJack
Please note that it also contains non-files, such as search results and new documents - that's why it's called "Document Selector" and not "Files Selector".

Re: Copy multiple filenames from the document selector

Posted: Wed Mar 22, 2023 8:24 pm
by IanOfYork
... copy the list of all of the files included in a workspace.
... copy the complete list of filenames.
The context menu already refuses to copy the displayed name of a document that is not a file.

Re: Copy multiple filenames from the document selector

Posted: Wed Mar 22, 2023 10:58 pm
by ben_josephs
There is a command to copy all file names to the clipboard. It's called EditCopyAllFileNames.
You can assign it to a keyboard shortcut at
Configure | Preferences | Keyboard | Categories: Edit | Commands: EditCopyAllFileNames

Re: Copy multiple filenames from the document selector

Posted: Thu Mar 23, 2023 10:34 am
by AmigoJack
In version 8 such a context menu item does not exist, but it is already available in the menu Edit > Copy Other > All File Names (while the menu item File Name behaves like you described: only copies the focused file, being deactivated on non-files). This should also exist in version 9 and a potentially assigned shortcut should then also be listed in that menu item.

Re: Copy multiple filenames from the document selector

Posted: Thu Mar 23, 2023 7:24 pm
by IanOfYork
Thanks Ben -- the command does indeed copy all of the filenames to the clipboard (although - oddly - not in same order as displayed), and I have added the command to my "Workspace" toolbar.

So, my original request simplifies to:
  1. add an item "Copy all filenames" to the context menu for a click anywhere in the document selector
  2. WHEN more than one file has been selected -- add an item "Copy selected filenames" to the context menu for a click on one of those filenames in the document selector
The existing function should simplify [1.]