summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-09 15:05:39 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-09 15:05:39 +0200
commit7311bf46a569da1cd40ec08429dfca1cffa338ae (patch)
treeb976651b987d04bd755a2b75971c70d55d6fd622
parent5a280fd5b65957720f9811d292086dd54c4015f8 (diff)
Add documentation and default keybindings for flip/mirror
-rw-r--r--ChangeLog2
-rw-r--r--man/feh.pre11
-rw-r--r--src/keyevents.c2
3 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 03ec370..f55edc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@ git HEAD
<https://github.com/derf/feh/issues/49>
* Allow Shift modifier in key config
<https://github.com/derf/feh/issues/30>
+ * New actions: lossless flip (key _) and mirror (key |)
+ <https://github.com/derf/feh/issues/53>
Mon, 04 Jul 2011 14:46:36 +0200 Daniel Friesel <derf@finalrewind.org>
diff --git a/man/feh.pre b/man/feh.pre
index b220a2b..77e59c7 100644
--- a/man/feh.pre
+++ b/man/feh.pre
@@ -1012,6 +1012,17 @@ away. See
.Xr jpegtran 1
for more about lossless JPEG rotation.
.
+.It _ Bq flip
+.
+In place editing - vertical flip
+.
+.It | Bq mirror
+.
+In place editing - horizontal flip.
+Again, see
+.Xr jpegtran 1
+for more information.
+.
.It 0 .. 9 Bq action_0 .. action_9
.
Execute the corresponding action
diff --git a/src/keyevents.c b/src/keyevents.c
index 7c14e14..4f01c24 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -147,6 +147,8 @@ void init_keyevents(void) {
feh_set_kb(&keys.save_filelist, 0, XK_f, 0, 0, 0, 0);
feh_set_kb(&keys.orient_1, 0, XK_greater, 0, 0, 0, 0);
feh_set_kb(&keys.orient_3, 0, XK_less, 0, 0, 0, 0);
+ feh_set_kb(&keys.flip, 0, XK_underscore, 0, 0, 0, 0);
+ feh_set_kb(&keys.mirror, 0, XK_bar, 0, 0, 0, 0);
feh_set_kb(&keys.reload_minus, 0, XK_minus, 0, 0, 0, 0);
feh_set_kb(&keys.reload_plus, 0, XK_plus, 0, 0, 0, 0);