Skip to content

duganchen/kitty-pistol-previewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitty-pistol-previewer

screenshot.jpg

A setup to get video thumbnails in nnn when it's running in kitty.

Install nnn's "preview-tui" plugin.

Set kitty.conf up to support the previewer plugin:

allow_remote_control yes

Add the following to whatever script sets up your environment (.bashrc, .zshrc, etc):

export NNN_FIFO=/tmp/nnn.fifo
export NNN_PLUG='p:preview-tui'
export USE_PISTOL=1
alias nnn='nnn -Pp'

Install the (other) dependencies:

Set up your pistol.conf:

video/* kitty_vidthumb %pistol-filename%
application/vnd.rn-realmedia kitty_vidthumb %pistol-filename%
image/* kitty +kitten icat --silent --transfer-mode=stream --stdin=no %pistol-filename%

Copy the two scripts, "vidthumb" and "kitty_vidthumb", to your PATH and make them executable.

And that should be it.

The thumbnail cache and index are in ~/.cache/vidthumb.

About

nnn-kitty-pistol-previewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages