freref/fancy-cat
PDF reader for terminal emulators using the Kitty image protocol
7dbb9fd3122e4ffad262dd7c151d80d863b68558.tar.gzeab2fde9ab2a8fd721d4af67e78308fb6b522a16.tar.gz3defc5d33162670c28e42af073cf9bc003017da6.tar.gz
📑
fancy-cat
PDF viewer for terminals using the Kitty image protocol
fancy-cat <path-to-pdf> <optional-page-number>
fancy-cat uses a modal interface similar to Neovim. There are two modes: view mode and command mode. To enter command mode you type : by default (this can be changed in the config file).
Documentation on the available commands can be found here.
fancy-cat can be configured through a JSON configuration file located in one of several locations (primary $XDG_CONFIG_HOME/fancy-cat/config.json, fallback $HOME/.config/fancy-cat/config.json, legacy $HOME/.fancy-cat). An empty configuration file is automatically created in the primary or fallback location on the first run.
An example config.json and documentation can be found here.
fancy-cat is available in the following repositories:
0.14.0git submodule update --init --recursive
zig build --release=small
NOTE There is a known issue with some processors; if the build fails on step 7/10 with the error
LLVM ERROR: Do not know how to expand the result of this operator!then try the command below instead:zig build -Dcpu="skylake" --release=small
# Add to your PATH
# Linux
mv zig-out/bin/fancy-cat ~/.local/bin/
# macOS
mv zig-out/bin/fancy-cat /usr/local/bin/
zig build run -- <path-to-pdf> <optional-page-number>
Contributions are welcome.