Skip to content

Instantly share code, notes, and snippets.

@JakeJing
Last active July 5, 2025 18:22
Show Gist options
  • Save JakeJing/75e750809a0649f8410e30528e3c78f3 to your computer and use it in GitHub Desktop.
Save JakeJing/75e750809a0649f8410e30528e3c78f3 to your computer and use it in GitHub Desktop.
preview pictures in vifm
" Pictures latest
filetype *.bmp,*.jpg,*.jpeg,*.png,*.xpm open -a Preview %f &
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
\ kitten icat --silent --transfer-mode=stream --place=%pwx%ph@%pxx%py %c >/dev/tty </dev/tty %N
\ %pc
\ kitten icat --clear --silent >/dev/tty </dev/tty %N
" for mac < 15.1.1
" fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
" \ kitty +kitten icat --transfer-mode=file --place=%pwx%ph@%pxx%py %c %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