summaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorNick Hanley <nicholasjhanley@gmail.com>2022-01-15 23:51:31 +0100
committerGitHub <noreply@github.com>2022-01-15 23:51:31 +0100
commit2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57 (patch)
tree73221bb787569c4089930436ddc644490ccb2c18 /commands.h
parent7a75c42b37b08f44c72f9a7c98eb6076967470fb (diff)
downloadnsxiv-2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57.tar.zst
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands.h b/commands.h
index 70af13a..b78157d 100644
--- a/commands.h
+++ b/commands.h
@@ -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 }