diff options
author | Nick Hanley <nicholasjhanley@gmail.com> | 2022-01-15 17:51:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 18:51:31 -0400 |
commit | 2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57 (patch) | |
tree | 73221bb787569c4089930436ddc644490ccb2c18 /commands.h | |
parent | 7a75c42b37b08f44c72f9a7c98eb6076967470fb (diff) |
Add keybind to scroll to image center (#203)
There are keybinds for scrolling to the edges of an image but there's no way back to the center. This is particularly annoying while zooming.
Diffstat (limited to 'commands.h')
-rw-r--r-- | commands.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ bool ci_navigate(arg_t); bool ci_navigate_frame(arg_t); bool ci_rotate(arg_t); bool ci_scroll(arg_t); +bool ci_scroll_to_center(arg_t); bool ci_scroll_to_edge(arg_t); bool ci_set_zoom(arg_t); bool ci_slideshow(arg_t); @@ -72,6 +73,7 @@ bool ct_select(arg_t); #define i_navigate_frame { ci_navigate_frame, MODE_IMAGE } #define i_rotate { ci_rotate, MODE_IMAGE } #define i_scroll { ci_scroll, MODE_IMAGE } +#define i_scroll_to_center { ci_scroll_to_center, MODE_IMAGE } #define i_scroll_to_edge { ci_scroll_to_edge, MODE_IMAGE } #define i_set_zoom { ci_set_zoom, MODE_IMAGE } #define i_slideshow { ci_slideshow, MODE_IMAGE } |