Skip to content

Instantly share code, notes, and snippets.

@JakeJing
Last active November 11, 2021 17:01
Show Gist options
  • Select an option

  • Save JakeJing/b6fb0a644c0037e27a09516c724e454a to your computer and use it in GitHub Desktop.

Select an option

Save JakeJing/b6fb0a644c0037e27a09516c724e454a to your computer and use it in GitHub Desktop.
preview videos in vifm
" Video
filetype *.gif,*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
\*.as[fx]
\ {Open in IINA}
\ open -a IINA.app,
\ {Open in QuickTime Player}
\ open -a QuickTime\ Player.app,
\ {Open in MPlayerX}
\ open -a MPlayerX.app,
fileviewer *.gif,*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx]
\ tput cup %py %px > /dev/tty && ffmpeg -y -hide_banner -loglevel panic -i %c -ss 00:00:01.000 -vframes 1 /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