summaryrefslogtreecommitdiff
path: root/src/keyevents.c
AgeCommit message (Collapse)AuthorLines
2020-06-16add option 'a' to show play/paused information in slideshow modereiseb-0/+2
2020-04-11update copyrightDaniel Friesel-1/+1
2020-04-08Notify user when attempting to edit caption of a URLDaniel Friesel-1/+4
2018-11-08Change default toggle_fullscreen key to "f"Daniel Friesel-2/+2
This is in line with other software. save_filelist now defaults to "L".
2018-10-17Use random() instead of rand() to increase portabilityDaniel Friesel-1/+1
Quoting glibc rand(3): The versions of rand() and srand() in the Linux C Library use the same random number generator as random(3) and srandom(3), so the lower-order bits should be as random as the higher-order bits. However, on older rand() implementations, and on current implementations on different systems, the lower-order bits are much less random than the higher-order bits. Do not use this function in applications intended to be portable when good randomness is needed. (Use random(3) instead.)
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2018-05-11Handle some Esc-based keys from stdin (arrow keys and Alt+X for now)Daniel Friesel-1/+25
2018-03-04Merge branch 'fix-toggle-fixed-geometry' of https://github.com/ulteq/feh ↵Daniel Friesel-0/+1
into ulteq-fix-toggle-fixed-geometry
2018-02-28Add toggle_auto_zoom key binding, defaulting to ZDaniel Friesel-0/+5
Closes #218
2017-12-28Apply the toggle_fixed_geometry event to current imageulteq-0/+1
2017-09-24Replace keybinding struct with an array of named bindingsDaniel Friesel-273/+160
2017-09-16Add toggle_fixed_geometry ("g") keybinding to enable/disable window auto-resizeDaniel Friesel-0/+12
Closes #326
2017-09-13Improve handling of lost terminalsDaniel Friesel-2/+33
When feh loses its controlling terminal at runtime, e.g. due to backgrounding / disowning, it will no longer issue a warning on each terminal keystroke.
2017-09-05Remove image from filelist if it was removed by an action (closes #322)Daniel Friesel-0/+3
2017-09-02Respect -N / --no-menus option (broken in 2.17)Daniel Friesel-1/+1
2017-08-31Add support for caption editing to stdin key inputDaniel Friesel-51/+54
2017-08-29Handle detaching the controlling tty from a feh processDaniel Friesel-1/+2
2017-08-23Add terminal-input support for space and returnDaniel Friesel-1/+7
2017-08-22Add experimental support for (remote) control via stdinDaniel Friesel-0/+15
2017-08-12Release v2.19.22.19.2Daniel Friesel-1/+1
2017-08-10Fix segfault in feh_event_handle_keypress for certain key inputsDaniel Friesel-2/+11
Turns out that it is undefined behaviour to pass a value to isctype functions which does not fit inside a char. Closes #312
2017-06-19Fix Shift modifier not being recognized for tab, space and similar keysDaniel Friesel-2/+2
Closes #303
2017-01-12Pass windidget to feh_action_run, making it possible to use format specifiersANogin-3/+3
like %o and %z in slideshow actions (I would like to use this to zoom in, pan, and then use an action to crop the window to zoomed in view).
2016-10-17Properly initialize zoom_fill key binding, set it to ! (exclamation mark)Daniel Friesel-0/+1
2016-10-15Added a "zoom fit" key binding for the current image.Ernie Ewert-3/+13
Fixed(?) Makefile document build issue for README.md
2016-08-28dedup key/button initializationDaniel Friesel-131/+138
2016-08-27Key actions can now also be bound to buttons. not vice versa, thoughDaniel Friesel-72/+82
2016-08-27preparations for unified key/button bindingsDaniel Friesel-3/+4
2016-05-28Add prev_dir and next_dir navigation actionsguns-0/+14
Many image collections are organized by directory, so it is nice to have jump-to-adjacent-directory navigation. e.g. Given the following file hierarchy: . ├── A │   ├── 1.jpg │   ├── 2.jpg │   └── C │   ├── 1.jpg │   ├── 2.jpg │   └── 3.jpg └── B ├── 1.jpg ├── 2.jpg └── 3.jpg `feh --recursive` creates the following filelist: A/1.jpg <---- current_file A/2.jpg A/C/1.jpg A/C/2.jpg A/C/3.jpg B/1.jpg B/2.jpg B/3.jpg If we press [next_dir], we move the current_file pointer to: A/1.jpg A/2.jpg A/C/1.jpg <-- current_file A/C/2.jpg A/C/3.jpg B/1.jpg B/2.jpg B/3.jpg Pressing [next_dir] again moves the pointer to: A/1.jpg A/2.jpg A/C/1.jpg A/C/2.jpg A/C/3.jpg B/1.jpg <---- current_file B/2.jpg B/3.jpg [next_dir] now moves the pointer back to the top of the list: A/1.jpg <---- current_file A/2.jpg A/C/1.jpg A/C/2.jpg A/C/3.jpg B/1.jpg B/2.jpg B/3.jpg Pressing [prev_dir] from here moves backwards to the first image of the previous directory: A/1.jpg A/2.jpg A/C/1.jpg A/C/2.jpg A/C/3.jpg B/1.jpg <---- current_file B/2.jpg B/3.jpg When starting from an position that is not the first image of a directory, [prev_dir] moves the pointer to the first image of the current directory. These actions combine well with `--sort dirname` since all regular files in a directory will be sorted before any subdirectories, avoiding a filelist like the following: A/1.jpg A/SUBDIR/2.jpg A/SUBDIR/3.jpg A/4.jpg With `--sort dirname` that filelist becomes: A/1.jpg A/4.jpg A/SUBDIR/2.jpg A/SUBDIR/3.jpg
2016-05-27events/keyevents: zero cur_bb/cur_kb on each iterationDaniel Friesel-0/+1
previously, a button/key definition with an invalid action name would assign the specified key to the most recent valid action. E.g. "zoom_in 4\ninvalid 5" wuold assign button 5 to zoom_in.
2015-11-15zoom: implement scale-down without flickerRichard Molitor-6/+0
this actually uses the old "force geometry" workaround to get the scale down behaviour (which makes the code a lot cleaner) by first setting the geometry after the window is created (to avoid creating a 0x0 sized window, which X does not like).
2015-07-23use --xinerama-index instead of XINERAMA_INDEX to override xinerama screen ↵Daniel Friesel-3/+2
selection
2014-05-22do not depend on HOME being setDaniel Friesel-4/+3
this introduces a bug in feh_wm_set_bg, which will be fixed in the next commit (only applies when run without HOME)
2014-04-14add --scroll-step optionDaniel Friesel-4/+4
2013-01-30Add option and keybinding to keep zoom and viewport settings.Daniel Friesel-0/+6
Patch by sdaau on IRC. Thanks!
2012-12-24Fix list_jump in thumbnail mode + thumbnail mode selection rollover (closes ↵Daniel Friesel-1/+4
#115)
2012-08-21reload: accept float valuesDaniel Friesel-1/+1
2012-03-15scroll keys: Sanitise offsets before renderingDaniel Friesel-0/+8
2012-03-12Add alternative defaults for numpad keybindings (closes #84)Daniel Friesel-3/+3
2012-03-06Revert "fix zoom_default for --scale-down"Daniel Friesel-5/+3
This reverts commit b257e011c4390900f14491e2cffe38b2d00892ec. Conflicts: ChangeLog
2012-02-26fix zoom_default for --scale-downDaniel Friesel-3/+5
2012-02-12Revert "Merge --scale-down / window dimension change patch"Daniel Friesel-12/+6
This reverts commit b6a1cff6db874f4708d5ff5ea6a17248610b7d90.
2012-02-12Merge --scale-down / window dimension change patchDaniel Friesel-6/+12
2012-01-27optional exif support (build with exif=1), initial patch importDaniel Friesel-0/+13
2011-11-27keyevents.c: caption entry: Only pause slideshow if slideshow_delay is setDaniel Friesel-1/+2
2011-11-19pause slideshow when editing a captionDaniel Friesel-1/+7
2011-10-10Code cleanupDaniel Friesel-3/+0
2011-10-02Minor thumbnail action fixupDaniel Friesel-3/+2
2011-09-29Thumbnail view now allows to execute actions.Olof-Joachim Frahm-4/+15
Only if a previously selected item (mouse over, keyboard) is available though.
2011-09-28Use buttons config instead of button optionsDaniel Friesel-1/+1