summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-13 16:47:40 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-13 16:47:40 +0100
commit4b27ab79db10dded5ffb08145cb7fb7d3ca68d1b (patch)
tree442e073b0e54946f89093125b5d9460b10cabea2 /src
parentaf9aca85c1b758276df5e0a5a7a136c111cc080b (diff)
downloadfeh-4b27ab79db10dded5ffb08145cb7fb7d3ca68d1b.zip
Add runtime shortcuts to toggle --draw-actions and --draw-filename
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c10
-rw-r--r--src/options.c2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index a3ab4d3..5cdf640 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -331,6 +331,16 @@ feh_event_handle_keypress(XEvent * ev)
switch (*kbuf)
{
+ case 'a':
+ case 'A':
+ opt.draw_actions = !opt.draw_actions;
+ winwidget_render_image(winwid, 0, 1);
+ break;
+ case 'd':
+ case 'D':
+ opt.draw_filename = !opt.draw_filename;
+ winwidget_render_image(winwid, 0, 1);
+ break;
case 'n':
case 'N':
case ' ':
diff --git a/src/options.c b/src/options.c
index 1ca942a..38be2fa 100644
--- a/src/options.c
+++ b/src/options.c
@@ -1123,6 +1123,8 @@ show_usage(void)
" w, W Size window to current image dimensions\n"
" h, H Pause the slideshow (only useful when using\n"
" timed reloading or image changes)\n"
+" a, A Toggle action display (--draw-actions)\n"
+" d, D Toggle filename display (--draw-filename)\n"
" s, S Save current image to unique filename\n"
" f, F Save current filelist to unique filename\n"
" <, > In place editing, rotate 90 degrees right/left\n"