From 2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57 Mon Sep 17 00:00:00 2001 From: Nick Hanley Date: Sat, 15 Jan 2022 17:51:31 -0500 Subject: 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. --- commands.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands.h') 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 } -- cgit v1.2.3