vifm: Add nsxiv as thumbnail previewer

Use <leader>t to start up nsxiv in thumbnail mode where it displays the
contents of the current directory.
You can do whatever you want with nsxiv, enlarge files with <Enter>,
flip them with | or - or delete them with D - the full bandwidth of
nsxiv is available.

If you mark pictures with m (or M) before exiting vifm will build a
custom filtered view containing only those files ready for further
filesystem operations with vifm.

Closes #11.

Also adds another layer of file previewer. If none of the other previewers
match (e.g. pdftotext for pdf, pandoc for docx, exa for directories, etc),
this viewer will be used and display the first couple hundred lines of a
file.

Essentially it means that unknown text files will be displayed using
this, but also binary files for which it displays the hexdump
automatically.
This commit is contained in:
Marty Oehme 2022-05-01 01:20:12 +02:00
parent 35eae9b32c
commit 89c028c8d6
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 38 additions and 0 deletions

View file

@ -56,6 +56,7 @@ dunst Customizable and lightweight notification-daemon R
dust A more intuitive version of du in rust R
efm-langserver General purpose Language Server A
element-desktop Glossy Matrix collaboration client — desktop version. R
enca Charset analyser and converter R
entr Run arbitrary commands when files change R
evince Document viewer (PDF, PostScript, XPS, djvu, dvi, tiff, cbr, cbz, cb7, cbt) R
exa ls replacement R

1 Name Description Source Target
56 dust A more intuitive version of du in rust R
57 efm-langserver General purpose Language Server A
58 element-desktop Glossy Matrix collaboration client — desktop version. R
59 enca Charset analyser and converter R
60 entr Run arbitrary commands when files change R
61 evince Document viewer (PDF, PostScript, XPS, djvu, dvi, tiff, cbr, cbz, cb7, cbt) R
62 exa ls replacement R