Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xrisk/preview-vim
- Owner: xrisk
- License: wtfpl
- Created: 2020-06-24T04:08:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T06:27:05.000Z (almost 4 years ago)
- Last Synced: 2024-06-17T08:32:28.837Z (5 months ago)
- Topics: karabiner-elements, pdf-viewer, vim, vim-bindings
- Homepage:
- Size: 5.86 KB
- Stars: 48
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- vim-keybindings-everywhere-the-ultimate-list - preview-vim - Adds vim-like keybindings, works via Karabiner Elements. (PDF Viewers)
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