sxiv icon indicating copy to clipboard operation
sxiv copied to clipboard

save filenames of marked files

Open hektr opened this issue 4 years ago • 1 comments

Hi! Can I save filenames of marked files on text file, using sxiv? Thanks!

hektr avatar May 19 '21 18:05 hektr

You can set a key in your ~/.config/sxiv/exec/key-handler to do it. The default key-handler is already set so that pressing ctrl+x ctrl+x sends the marked files to the clipboard using xclip (see line 26). You could modify it or add your own line that runs cat >/path/to/your/file.txt to save the list of files to a file instead.

defaultxr avatar May 26 '21 06:05 defaultxr