phye / preview-vim

vim bindings for macOS Preview.app via Karabiner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim bindings for macOS Preview.app

This is a Karabiner rule that binds vim movement keys in Preview, so you can scroll using the keyboard.

Why

Zathura looks like shit.

How to use

  1. Install Karabiner.
  2. Copy preview-vim.json to ~/.config/karabiner/assets/complex_modifications
  3. Enable the rule from the complex modifications pane.

Keybindings

Movements:

  • Left => h
  • Right => l
  • Down => j
  • Up => k
  • Previous position => H
  • Next position => L
  • Previous page => K
  • Next page => J
  • First page => g
  • Last page => G

Zoom:

  • Zoom In => =
  • Zoom Out => -
  • Actual size => 0
  • Zoom to fit => 9

Contributors

Thanks to Daniel Rivas for contributing substantial functionality!

Todo

  • make more zathura-like

About

vim bindings for macOS Preview.app via Karabiner

License:Do What The F*ck You Want To Public License