瀏覽代碼

New key command: r, reload image

master
Bert 14 年之前
父節點
當前提交
5a682426b1
共有 3 個檔案被更改,包括 16 行新增9 行删除
  1. +10
    -9
      README.md
  2. +3
    -0
      main.c
  3. +3
    -0
      sxiv.1

+ 10
- 9
README.md 查看文件

@@ -30,16 +30,16 @@ Usage
----- -----
sxiv supports the following command-line options: sxiv supports the following command-line options:


-d scale all images to 100%, but fit large images into window -d Scale all images to 100%, but fit large images into window
-f start in fullscreen mode -f Start in fullscreen mode
-g GEOMETRY set window position and size -g GEOMETRY Set window position and size
(see section GEOMETRY SPECIFICATIONS of X(7)) (see section GEOMETRY SPECIFICATIONS of X(7))
-p pixelize, i.e. turn off image anti-aliasing -p Pixelize, i.e. turn off image anti-aliasing
-q be quiet, disable warnings -q Be quiet, disable warnings
-s scale all images to fit into window -s Scale all images to fit into window
-v print version information and exit -v Print version information and exit
-Z same as `-z 100' -Z Same as `-z 100'
-z ZOOM scale all images to current zoom level, use ZOOM at startup -z ZOOM Scale all images to current zoom level, use ZOOM at startup


Use the following keys to control sxiv: Use the following keys to control sxiv:


@@ -56,6 +56,7 @@ Use the following keys to control sxiv:
f Toggle fullscreen mode (requires an EWMH/NetWM compliant f Toggle fullscreen mode (requires an EWMH/NetWM compliant
window manager) window manager)
a Toggle anti-aliasing a Toggle anti-aliasing
r Reload image


Additionally, sxiv can be controlled via the following mouse commands: Additionally, sxiv can be controlled via the following mouse commands:




+ 3
- 0
main.c 查看文件

@@ -235,6 +235,9 @@ void on_keypress(XEvent *ev) {
case XK_a: case XK_a:
changed = img_toggle_antialias(&img); changed = img_toggle_antialias(&img);
break; break;
case XK_r:
changed = img_load(&img, filenames[fileidx]);
break;
} }


if (changed) { if (changed) {


+ 3
- 0
sxiv.1 查看文件

@@ -112,6 +112,9 @@ Toggle fullscreen mode.
.TP .TP
.B a .B a
Toggle anti-aliasing. Toggle anti-aliasing.
.TP
.B r
Reload image.
.SH MOUSE COMMANDS .SH MOUSE COMMANDS
.SS Navigate image list .SS Navigate image list
.TP .TP


||||||
x
 
000:0
Loading…
取消
儲存