nsxivf75fa78
Make navigate_frame command respect a count prefix
+9 −3
3 files changed
- M README.md +1 −1
- M commands.c +2 −0
- M sxiv.1 +6 −2
| @@ -122,7 +122,7 @@ of small previews is displayed, making it easy to choose an image to open. | |||
| 122 | 122 | n,Space Go [count] images forward | |
| 123 | 123 | p,Backspace Go [count] images backward | |
| 124 | 124 | [,] 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 | |
| 126 | 126 | Ctrl-Space Play/stop animations of multi-frame images | |
| 127 | 127 | h,j,k,l Scroll image 1/5 of window width/height or [count] pixels | |
| 128 | 128 | left/down/up/right (also with arrow keys) | |
| @@ -289,6 +289,8 @@ bool ci_alternate(arg_t _) | |||
| 289 | 289 | ||
| 290 | 290 | bool ci_navigate_frame(arg_t d) | |
| 291 | 291 | { | |
| 292 | + | if (prefix > 0) | |
| 293 | + | d *= prefix; | |
| 292 | 294 | return !img.multi.animate && img_frame_navigate(&img, d); | |
| 293 | 295 | } | |
| 294 | 296 | ||
| @@ -228,10 +228,14 @@ Go | |||
| 228 | 228 | .SS Handle multi-frame images | |
| 229 | 229 | .TP | |
| 230 | 230 | .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. | |
| 232 | 234 | .TP | |
| 233 | 235 | .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. | |
| 235 | 239 | .TP | |
| 236 | 240 | .B Ctrl-Space | |
| 237 | 241 | Play/stop animations of multi-frame images. | |