xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.82k stars 261 forks source link

save filenames of marked files #451

Open hektr opened 3 years ago

hektr commented 3 years ago

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

defaultxr commented 3 years ago

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.