Krolyxon
Commit f75fa78

Branches

Refs →

nsxivf75fa78

Make navigate_frame command respect a count prefix

Author
Bert Münnich
Date
2015-12-26 15:24 +0100
Parent
4db3029
Commit
f75fa78ecaea43204e5e6abdf568139a7b621d6d

+9 −3

3 files changed

  1. M README.md +1 −1
  2. M commands.c +2 −0
  3. M sxiv.1 +6 −2
M README.md View
@@ -122,7 +122,7 @@ of small previews is displayed, making it easy to choose an image to open.
122122 n,Space Go [count] images forward
123123 p,Backspace Go [count] images backward
124124 [,] Go [count] * 10 images backward/forward
125− Ctrl-n,p Go to the next/previous frame of a multi-frame image
125+ Ctrl-n,p Go [count] frames of a multi-frame image forward/backward
126126 Ctrl-Space Play/stop animations of multi-frame images
127127 h,j,k,l Scroll image 1/5 of window width/height or [count] pixels
128128 left/down/up/right (also with arrow keys)
M commands.c View
@@ -289,6 +289,8 @@ bool ci_alternate(arg_t _)
289289
290290 bool ci_navigate_frame(arg_t d)
291291 {
292+ if (prefix > 0)
293+ d *= prefix;
292294 return !img.multi.animate && img_frame_navigate(&img, d);
293295 }
294296
M sxiv.1 View
@@ -228,10 +228,14 @@ Go
228228 .SS Handle multi-frame images
229229 .TP
230230 .B Ctrl-n
231−Go to the next frame of a multi-frame image.
231+Go
232+.I count
233+frames of a multi-frame image forward.
232234 .TP
233235 .B Ctrl-p
234−Go to the previous frame of a multi-frame image.
236+Go
237+.I count
238+frames of a multi-frame image backward.
235239 .TP
236240 .B Ctrl-Space
237241 Play/stop animations of multi-frame images.