Skip to content

Commit

Permalink
Add convenient scroll keybindings to epub layer
Browse files Browse the repository at this point in the history
Similar to the keybindings added to the info layer in PR syl20bnr#14188, I here propose to add the same
keybindings to the epub layer. These J/K keybindings are currently undefined in the epub
layer. These keybindings are used in the Zathura document reader, they are very
convenient and I guess they feel very natural and are preferred over d/u by most people.
  • Loading branch information
dalanicolai authored and aam-at committed Mar 23, 2021
1 parent 7251192 commit 4c81315
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.develop
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ the [[file:CHANGELOG.org][CHANGELOG.org]] file.
- LSP code navigation / completion added via clangd or ccls
(thanks to Cormac Cannon)
- Removed cquery.
***** EPUB
- Add ~J/K~ for scrolling down/up (thanks to Daniel Nicolai)
***** ESS
- ESS key bindings were re-organised in the following list
(thanks to Guido Kraemer, Yi Liu, and Jack Kamm):
Expand Down
4 changes: 2 additions & 2 deletions layers/+readers/epub/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ file.
| ~<BACKTAB>~ | Previous link |
| ~H~ or ~[~ | Previous chapter |
| ~L~ or ~]~ | Next chapter |
| ~u~ | Scroll up |
| ~d~ | Scroll down |
| ~K/u~ | Scroll up |
| ~J/d~ | Scroll down |
| ~g m~ | Display metadata |
| ~g r~ | Re-render document |
| ~g t~ | Table of contents |
Expand Down
2 changes: 2 additions & 0 deletions layers/+readers/epub/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
(kbd "]") 'nov-next-document
(kbd "d") 'nov-scroll-up
(kbd "u") 'nov-scroll-down
(kbd "J") 'nov-scroll-up
(kbd "K") 'nov-scroll-down
(kbd "gm") 'nov-display-metadata
(kbd "gr") 'nov-render-document
(kbd "gt") 'nov-goto-toc
Expand Down

0 comments on commit 4c81315

Please sign in to comment.