summaryrefslogtreecommitdiff
path: root/src/keyevents.c
AgeCommit message (Collapse)AuthorLines
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
2011-09-28Set max/min zoom for both key and mouse zoomingDaniel Friesel-0/+8
2011-09-01Revert "feh_reload_image: Always die if reload failed"Daniel Friesel-3/+3
This reverts commit 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce.
2011-08-31feh_reload_image: Always die if reload failedDaniel Friesel-3/+3
This fixes a segfault in --reload when the image becomes unloadable while feh is running. Note that this does not affect --reload with more than one file: If the current image is removed, feh will simply jump to the next image. feh will only quit if the file still exists, but can no longer be loaded.
2011-08-29Various code fixupsDaniel Friesel-1/+1
* remove unused variable Im1 in filelist.c * options are initialised as 0, so only explicitly set those to 0 for which it makes sense because of their context * Make a few warnings about wrong option combinations fatal
2011-08-18--action: Reload image if hold_action flag (;) is set (closes #59)Daniel Friesel-3/+8
An action may be used to alter the image or specific parts of it displayed by --info, so if a user invokes an action with hold_action set, the image and all relevant information must be reloaded.
2011-08-11Show correct file number after deleting imageDaniel Friesel-8/+8
In the image_remove function, slideshow_change_image needs to be called before removing the image from the filelist. Because of this, the "x of y" displayed by --draw-filename is wrong (y is 1 too high). This commit introduces a new 'render' argument to slideshow_chingae_image. The image_remove function calls it with render=0, edits the filelist and then runs by winwidget_render_image itself. Patch by Yu-Jie Lin.
2011-08-11keyevents.c: Do not force aliasing when using scroll_*_pageDaniel Friesel-4/+4
2011-08-10Remove unused variablesDaniel Friesel-2/+1
2011-08-09Add documentation and default keybindings for flip/mirrorDaniel Friesel-0/+2
2011-08-09Merge patch by livibetter: Add flip and mirror in-place edit actions (closes ↵Daniel Friesel-2/+12
#53)
2011-08-09Add flip/mirror in-placec edit actions (derf/#9)Yu-Jie Lin-2/+12
2011-08-02keyevents.c: Support Shift modifier (see github issue #30, patch by Yu-Jie Lin)Daniel Friesel-1/+9
2011-07-31allow multiple modifierYu-Jie Lin-7/+7
Signed-off-by: Yu-Jie Lin <livibetter@gmail.com>
2011-07-31add scroll by a page actionsYu-Jie Lin-0/+28
A page is the window width or height. Signed-off-by: Yu-Jie Lin <livibetter@gmail.com>
2011-06-07Add toggle_info key (closes #48)Daniel Friesel-0/+7
2011-05-10Respect thumbnail selection keys only in thumbnail listDaniel Friesel-5/+5
2011-05-10Fix zoom_default with --scale-down (closes #41)Daniel Friesel-2/+7
2011-05-10keyevents.c: Make toggle_aliasing actually affect the current windowDaniel Friesel-1/+2
2011-05-02Use next/prev/render keys to select images in thumbnail mode (closes #26)Daniel Friesel-1/+12
2011-04-30Replace some printf calls by fputs/putcDaniel Friesel-11/+4
2011-04-26Only create caption directory when writing out a caption (closes #42)Daniel Friesel-2/+3
2011-03-21Add method to forcefully disable antialiasing (closes GH-17)Daniel Friesel-12/+19
2011-01-26Restrict modifiers to Control/Mod1/Mod4, ignore NumLock (closes GH-31)Daniel Friesel-11/+1
2011-01-25key bindings: Don't get confused by keystates we don't support (see GH-30)Daniel Friesel-59/+57
2011-01-22Make in/out zoom use equal ratio, double image movement stepsizeDaniel Friesel-5/+5
2011-01-17Copyright FooDaniel Friesel-0/+1
2011-01-17Ignore Shift keystate, shift/non-shift keysyms differ anyways.Daniel Friesel-4/+9
2011-01-16feh/keys: Allow action unbindingDaniel Friesel-1/+1