https://github.com/trietphm/pv
Electron app for viewing PDF with simple vim binding
https://github.com/trietphm/pv
electron electron-app pdf pdfjs vim
Last synced: 5 months ago
JSON representation
Electron app for viewing PDF with simple vim binding
- Host: GitHub
- URL: https://github.com/trietphm/pv
- Owner: trietphm
- License: mit
- Created: 2018-10-28T05:23:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T08:40:26.000Z (over 3 years ago)
- Last Synced: 2024-05-29T19:02:09.047Z (about 2 years ago)
- Topics: electron, electron-app, pdf, pdfjs, vim
- Language: JavaScript
- Size: 4.88 MB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# pv - PDF-Vim
Electron app for viewing PDF with simple vim binding.
Using:
- Electron https://github.com/electron/electron
- PDF.js https://mozilla.github.io/pdf.js/
Update keyboard shortcuts:
- PDF.js support many keyboard shortcuts https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#what-are-the-pdfjs-keyboard-shortcuts, but unfortunately does not support j/k to move up/down.
- Switch old `j`/`k` (page down/page up) to `d/u`
- Implement new keybind `j`/`k` to move `down`/`up`
# Install
From source
```
npm install
npm start
```
or check release section for dmg files
https://github.com/trietphm/pv/releases
# PDF.js source
Modified source: https://github.com/trietphm/pdf.js
https://github.com/trietphm/pdf.js/commit/d7c3371b1ba6a31d2d2121378d7442313be6548f