Previewer is a file browser for linux terminal written in python with curses.
It is meant to easily preview files, with a folder tree list as navigation system.
Designed to work in non-desktop environments, tty, ssh connections, devices with small displays...
- Navigate filesystem through expandable Folder Tree
- Preview files with syntax highlighting for almost any coding language
- Jump to vim / nano / micro editor with key B / N / M
- Linux Terminal
- Python 3 (only for installation method 2)
-
Method 1 - Install script (recommended) :Deprecated: migrating to pyinstaller
git clone https://github.com/mgustran/previewer.git
cd previewer
bash install.sh
-
Method 2 - ZipApp & Alias :
git clone https://github.com/mgustran/previewer.git
cd previewer
bash install-alias.sh
* Can use--fast
to skip dependency install, be sure to run it without 1st time
preview
Opens current working dirpreview <path>
Opens folder/file passed as argument
- GNU GPL, see LICENCE file
- Using a modified version of culour (GNU GPL) to work with pygments library
Thanks to Clay McLeod for an excellent example to start learning python curses