Last active
June 8, 2023 16:31
-
-
Save Ryan1729/9c73d83d995191a71a1a3bbd1e740456 to your computer and use it in GitHub Desktop.
zathurarc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zathurarc | |
# dark mode! | |
set recolor true | |
# Hide statusbar | |
set guioptions none | |
# Swap <C-d> and d, and change half-down to full down | |
map [normal] d scroll full-down | |
map [fullscreen] d scroll full-down | |
map [normal] <C-d> toggle_page_mode 2 | |
map [fullscreen] <C-d> toggle_page_mode 2 | |
# Add the old <C-d> behaviour to <A-d> | |
map [normal] <A-d> scroll half-down | |
map [fullscreen] <A-d> scroll half-down | |
# Since we swapped <C-d> and d, swap <C-d> and u and adjust to match | |
map [normal] u scroll full-up | |
map [fullscreen] u scroll full-up | |
unmap [normal] <C-u> | |
unmap [fullscreen] <C-u> | |
map [normal] <A-u> scroll half-up | |
map [fullscreen] <A-u> scroll half-up | |
# map e to the opposite of d, since e is above d on the keyboard | |
map [normal] e scroll full-up | |
map [fullscreen] e scroll full-up | |
map [normal] <A-e> scroll half-up | |
map [fullscreen] <A-e> scroll half-up | |
# from https://github.com/majutsushi/etc/blob/c54b59e96470d042f053351ac7b92d0bcf4107a5/zathurarc | |
# Why are these only defined for normal mode by default? | |
map [fullscreen] a adjust_window best-fit | |
map [fullscreen] s adjust_window width | |
map [fullscreen] f follow | |
map [fullscreen] d toggle_page_mode 2 | |
map [fullscreen] <Tab> toggle_index | |
map [fullscreen] j scroll down | |
map [fullscreen] k scroll up | |
#map [fullscreen] <C-d> scroll half-down | |
#map [fullscreen] <C-u> scroll half-up | |
map [fullscreen] <C-o> jumplist backward | |
map [fullscreen] <C-i> jumplist forward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment