aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-13 00:13:13 +0600
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 22:55:31 +0300
commitca692ac4857bf696b75d8c06f8f75a099940cc59 (patch)
treefba3bec3c87debe0341798b609f93131fc20fef0
parentf7557c55b5a87a51daba825ed3f6155eed179221 (diff)
add new keybind, Ctrl-a to toggle animation (#33)
* add new keybind, Ctrl-a to toggle animation Closes: https://github.com/nsxiv/nsxiv/issues/27 * Format consistency This keeps in line with other actions that have multiple keybinds Co-authored-by: eylles <ed.ylles1997@gmail.com> Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
-rw-r--r--config.def.h1
-rw-r--r--sxiv.12
2 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 9e30640..dd8d44d 100644
--- a/config.def.h
+++ b/config.def.h
@@ -112,6 +112,7 @@ static const keymap_t keys[] = {
{ ControlMask, XK_n, i_navigate_frame, +1 },
{ ControlMask, XK_p, i_navigate_frame, -1 },
{ ControlMask, XK_space, i_toggle_animation, None },
+ { ControlMask, XK_a, i_toggle_animation, None },
{ 0, XK_h, i_scroll, DIR_LEFT },
{ 0, XK_Left, i_scroll, DIR_LEFT },
{ 0, XK_j, i_scroll, DIR_DOWN },
diff --git a/sxiv.1 b/sxiv.1
index bf8d5c3..e714ed6 100644
--- a/sxiv.1
+++ b/sxiv.1
@@ -262,7 +262,7 @@ Go
.I count
frames of a multi-frame image backward.
.TP
-.B Ctrl-Space
+.BR Ctrl-a ", " Ctrl-Space
Play/stop animations of multi-frame images.
.TP
Panning: