Skip to content

Instantly share code, notes, and snippets.

@JakeJing
Last active November 11, 2021 16:59
Show Gist options
  • Save JakeJing/6065ee9c67ec1b940b1ac320728f19a5 to your computer and use it in GitHub Desktop.
Save JakeJing/6065ee9c67ec1b940b1ac320728f19a5 to your computer and use it in GitHub Desktop.
preview pdfs in vifm
" Pdf
filetype *.pdf open -a Preview %f &
fileviewer *.pdf
\ tput cup %py %px > /dev/tty && sips -s format jpeg %c --out /tmp/tempfile.jpg > /dev/null&& kitty +kitten icat --transfer-mode=file --place=%pwx%ph@%pxx%py /tmp/tempfile.jpg %N
\ %pc
\ kitty +kitten icat --transfer-mode=file --place=%pwx%ph@%pxx%py --clear %N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment