From 7a75c42b37b08f44c72f9a7c98eb6076967470fb Mon Sep 17 00:00:00 2001 From: N-R-K <79544946+N-R-K@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:52:06 +0000 Subject: make thumbnail bindings configureable via config.h (#167) this allows for configuring thumbnail mode mouse bindings similar to image mode bindings. however we can't put the thumbnails bindings into the existing buttons[] array due to fallthrough. For example M3 would switch mode and then end up selecting an image. which is why thumbnail bindings have been put into it's own array `buttons_tns[]` and `buttons[]` has been renamed to `buttons_img[]` for consistency. Closes: https://github.com/nsxiv/nsxiv/issues/131 --- commands.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'commands.h') diff --git a/commands.h b/commands.h index 8935f22..70af13a 100644 --- a/commands.h +++ b/commands.h @@ -39,6 +39,9 @@ bool ci_toggle_antialias(arg_t); /* thumbnails mode */ bool ct_move_sel(arg_t); bool ct_reload_all(arg_t); +bool ct_scroll(arg_t); +bool ct_drag_mark_image(arg_t); +bool ct_select(arg_t); /* global */ #define g_change_gamma { cg_change_gamma, MODE_ALL } @@ -79,5 +82,8 @@ bool ct_reload_all(arg_t); /* thumbnails mode */ #define t_move_sel { ct_move_sel, MODE_THUMB } #define t_reload_all { ct_reload_all, MODE_THUMB } +#define t_scroll { ct_scroll, MODE_THUMB } +#define t_drag_mark_image { ct_drag_mark_image, MODE_THUMB } +#define t_select { ct_select, MODE_THUMB } #endif /* COMMANDS_H */ -- cgit v1.2.3-54-g00ecf