diff options
author | N-R-K <79544946+N-R-K@users.noreply.github.com> | 2022-01-10 17:52:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:52:06 +0100 |
commit | 7a75c42b37b08f44c72f9a7c98eb6076967470fb (patch) | |
tree | 9171a7929d43cb2a6d72703374970ac7e60c9509 /commands.h | |
parent | 157cda5b31d51ea1379d907489fa982bcba36f44 (diff) | |
download | nsxiv-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |