Krolyxon
Commit 5a68242

Branches

Refs →

nsxiv5a68242

New key command: r, reload image

Author
Bert
Date
2011-01-31 16:06 +0100
Parent
b1ce42e
Commit
5a682426b128fd33bd76f466831a9a36e80e1c2c

+16 −9

3 files changed

  1. M README.md +10 −9
  2. M main.c +3 −0
  3. M sxiv.1 +3 −0
M README.md View
@@ -30,16 +30,16 @@ Usage
3030 -----
3131 sxiv supports the following command-line options:
3232
33− -d scale all images to 100%, but fit large images into window
34− -f start in fullscreen mode
35− -g GEOMETRY set window position and size
33+ -d Scale all images to 100%, but fit large images into window
34+ -f Start in fullscreen mode
35+ -g GEOMETRY Set window position and size
3636 (see section GEOMETRY SPECIFICATIONS of X(7))
37− -p pixelize, i.e. turn off image anti-aliasing
38− -q be quiet, disable warnings
39− -s scale all images to fit into window
40− -v print version information and exit
41− -Z same as `-z 100'
42− -z ZOOM scale all images to current zoom level, use ZOOM at startup
37+ -p Pixelize, i.e. turn off image anti-aliasing
38+ -q Be quiet, disable warnings
39+ -s Scale all images to fit into window
40+ -v Print version information and exit
41+ -Z Same as `-z 100'
42+ -z ZOOM Scale all images to current zoom level, use ZOOM at startup
4343
4444 Use the following keys to control sxiv:
4545
@@ -56,6 +56,7 @@ Use the following keys to control sxiv:
5656 f Toggle fullscreen mode (requires an EWMH/NetWM compliant
5757 window manager)
5858 a Toggle anti-aliasing
59+ r Reload image
5960
6061 Additionally, sxiv can be controlled via the following mouse commands:
6162
M main.c View
@@ -235,6 +235,9 @@ void on_keypress(XEvent *ev) {
235235 case XK_a:
236236 changed = img_toggle_antialias(&img);
237237 break;
238+ case XK_r:
239+ changed = img_load(&img, filenames[fileidx]);
240+ break;
238241 }
239242
240243 if (changed) {
M sxiv.1 View
@@ -112,6 +112,9 @@ Toggle fullscreen mode.
112112 .TP
113113 .B a
114114 Toggle anti-aliasing.
115+.TP
116+.B r
117+Reload image.
115118 .SH MOUSE COMMANDS
116119 .SS Navigate image list
117120 .TP