Skip to content
/ prev Public

A fast file previewer for the terminal which works with pretty much everything you throw at it.

License

Notifications You must be signed in to change notification settings

durcor/prev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prev

A fast file previewer for the terminal.

Works with both plain-text and binary files, such as images, PDFs, and executables.

Designed for use with terminal file managers like lf and ranger, but usable from the command line as well.

Included is also a nvim config made for robust and beautiful syntax-highlighting for every file type you will ever encounter for use with nvimpager.

Usage

From the command line:

prev $FILE_TO_PREVIEW

In your lf config:

set previewer prev

Installation

sudo make install

Dependencies:

  • nvimpager (for better highlighting integration with nvim configs)
  • chafa
  • ffmpegthumbnailer
  • mediainfo
  • djvulibre
  • pandoc
  • p7zip
  • libcdio
  • unzip
  • jq
  • libreoffice

About

A fast file previewer for the terminal which works with pretty much everything you throw at it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published