Skip to content

Instantly share code, notes, and snippets.

@kmaed
Created July 24, 2012 06:08
Show Gist options
  • Save kmaed/3168313 to your computer and use it in GitHub Desktop.
Save kmaed/3168313 to your computer and use it in GitHub Desktop.
Emacs like key bindings for zathura
set adjust-open width
map \< goto top
map \> goto bottom
map b navigate previous
map e follow
map f navigate next
map p goto top
map <C-+> zoom in
map <C--> zoom out
map <C-=> zoom in
map <C-)> adjust_window best-fit
map <C-0> adjust_window width
map <C-a> scroll full-left
map <C-b> scroll left
map <C-e> scroll full-right
map <C-f> scroll right
map <C-g> abort
map <C-n> scroll down
map <C-p> scroll up
map <C-v> scroll full-down
map <A-\<> goto top
map <A-\>> goto bottom
map <A-v> scroll full-up
Copy link

ghost commented Jan 12, 2024 via email

Copy link

ghost commented Jan 12, 2024 via email

@akashpal-21
Copy link

akashpal-21 commented Jan 14, 2024

map [fullscreen] + zoom in map [fullscreen] - zoom out map [fullscreen] scroll full-up map [fullscreen] toggle_statusbar map [fullscreen] scroll full-up map [fullscreen] navigate previous map [fullscreen] navigate next map [fullscreen] search backward map [fullscreen] search forward map [fullscreen] scroll down map [fullscreen] scroll left map [fullscreen] scroll full-down map [fullscreen] scroll right map [fullscreen] scroll full-down map [fullscreen] toggle_index map [fullscreen] scroll up map [fullscreen] = zoom in map [fullscreen] A adjust_window best-fit map [fullscreen] F follow map [fullscreen] ' mark_evaluate map [fullscreen] , navigate next map [fullscreen] . navigate previous map [fullscreen] a scroll full-left map [fullscreen] b scroll left map [fullscreen] d toggle_page_mode map [fullscreen] e scroll full-right map [fullscreen] f scroll right map [fullscreen] i toggle_index map [fullscreen] l jumplist backward map [fullscreen] m mark_add map [fullscreen] n scroll down map [fullscreen] p scroll up map [fullscreen] q quit map [fullscreen] r jumplist forward map [fullscreen] s adjust_window width map [index] <A-<> navigate_index top map [index] <A->> navigate_index bottom map [index] navigate_index collapse-all map [index] toggle_statusbar map [index] navigate_index up map [index] navigate_index up map [index] <C-[> toggle_index map [index] navigate_index collapse map [index] toggle_index map [index] navigate_index expand map [index] toggle_index map [index] navigate_index up map [index] navigate_index expand-all map [index] navigate_index select map [index] navigate_index select map [index] navigate_index down map [index] navigate_index up map [index] navigate_index down map [index] navigate_index down map [index] toggle_index map [index] navigate_index collapse map [index] navigate_index select map [index] navigate_index expand map [index] navigate_index select map [index] navigate_index up map [index] < navigate_index top map [index] > navigate_index bottom map [index] i toggle_index map [index] q toggle_index map [normal] + zoom in map [normal] - zoom out map [normal] scroll full-up map [normal] toggle_statusbar map [normal] scroll full-up map [normal] navigate previous map [normal] navigate next map [normal] search backward map [normal] search forward map [normal] scroll down map [normal] scroll left map [normal] scroll full-down map [normal] scroll right map [normal] scroll full-down map [normal] toggle_index map [normal] scroll up map [normal] = zoom in map [normal] A adjust_window best-fit map [normal] F follow map [normal] R rotate map [normal] ' mark_evaluate map [normal] , navigate next map [normal] . navigate previous map [normal] a scroll full-left map [normal] b scroll left map [normal] d toggle_page_mode map [normal] e scroll full-right map [normal] f scroll right map [normal] i toggle_index map [normal] l jumplist backward map [normal] m mark_add map [normal] n scroll down map [normal] p scroll up map [normal] q quit map [normal] r jumplist forward map [normal] s adjust_window width

This is so detailed and filled with proper examples, I made the following edits but overall everything is planned out nicely

-map [fullscreen] n   scroll down
-map [fullscreen] p   scroll up
+map [fullscreen] n   navigate next
+map [fullscreen] <C-n> scroll down
+map [fullscreen] p   navigate previous
+map [fullscreen] <C-p> scroll up

-map [normal] n   scroll down
-map [normal] p   scroll up
+map [normal] n   navigate next
+map [normal] <C-n>   scroll down
+map [normal] p   navigate previous
+map [normal] <C-p>   scroll up

I can finally use zathura without having to torture myself with the vim key bindings!

Copy link

ghost commented Jan 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment