aboutsummaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2022-01-10 17:52:06 +0100
committerGitHub <noreply@github.com>2022-01-10 17:52:06 +0100
commit7a75c42b37b08f44c72f9a7c98eb6076967470fb (patch)
tree9171a7929d43cb2a6d72703374970ac7e60c9509 /commands.h
parent157cda5b31d51ea1379d907489fa982bcba36f44 (diff)
downloadnsxiv-7a75c42b37b08f44c72f9a7c98eb6076967470fb.tar.zst
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
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h6
1 files changed, 6 insertions, 0 deletions
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 */