Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xrisk/preview-vim

vim bindings for macOS Preview.app via Karabiner
https://github.com/xrisk/preview-vim

karabiner-elements pdf-viewer vim vim-bindings

Last synced: 3 months ago
JSON representation

vim bindings for macOS Preview.app via Karabiner

Awesome Lists containing this project

README

        

# vim bindings for macOS Preview.app

This is a [Karabiner](https://karabiner-elements.pqrs.org) 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](https://github.com/DanielRivasMD) for contributing substantial functionality!

## Todo

- [ ] make more zathura-like