diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-13 16:47:40 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-02-13 16:47:40 +0100 | 
| commit | 4b27ab79db10dded5ffb08145cb7fb7d3ca68d1b (patch) | |
| tree | 442e073b0e54946f89093125b5d9460b10cabea2 | |
| parent | af9aca85c1b758276df5e0a5a7a136c111cc080b (diff) | |
Add runtime shortcuts to toggle --draw-actions and --draw-filename
| -rw-r--r-- | TODO | 3 | ||||
| -rw-r--r-- | feh.1 | 6 | ||||
| -rw-r--r-- | src/keyevents.c | 10 | ||||
| -rw-r--r-- | src/options.c | 2 | 
4 files changed, 18 insertions, 3 deletions
| @@ -4,9 +4,6 @@ Change sizes and you get the old thumbs....  Option --autograb for feh to grab keyboard - so you can control feh without  having to focus it. Have to be a bit careful with this but could be useful. -Now we have 10 --action* options, would be nice to hit a key and get a text -overlay reminder showing what each one does :p -  key/option/signal/timeout to totally reload filelist (rescan directories etc)  The "No more slides left in show" bug was fixed, but now there's a rare @@ -535,6 +535,12 @@ Size window to current image size.  Pause the slideshow (only useful when using  timed reloading or image changes)  .TP 5 +.B a, A +Toggle actions display (see --draw-actions) +.TP 5 +.B d, D +Toggle filename display (see --draw-filename) +.TP 5  .B s, S  Save the current image to a unique filename.  .TP 5 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" | 
