summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-05-28Add prev_dir and next_dir navigation actionsguns-1/+57
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-28New sort option: dirnameguns-2/+50
Sort filelist by dirname, then by name. This results in file entries sorting before subdirectory entries. Useful in conjunction with upcoming prev_dir and next_dir navigation actions.
2016-05-28Add --sort mtime to menu and fix menu when sorting by mtimeguns-9/+40
We did not preload when SORT_MTIME, so check opt.sort > SORT_MTIME before offering to sort by file size. The CB_* enum block was run through s/, /,\n\t/g for legibility.
2016-05-27events/keyevents: zero cur_bb/cur_kb on each iterationDaniel Friesel-0/+2
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.
2016-05-05src/main.c: switch spaces to tabs to clobber GCC warningDaniel Lockyer-2/+2
2016-05-03feh_draw_filename: Set correct list number in multiwindow mode (closes #237)Daniel Friesel-2/+6
2016-05-02src/main.c: rebase master and fix segfault issueDaniel Lockyer-0/+3
2016-05-02Merge branch 'optionsmem' of https://github.com/neosilky/feh into ↵Daniel Friesel-0/+3
neosilky-optionsmem
2016-05-02always initialize data_root and data_esetrootDaniel Friesel-1/+1
2016-05-02Merge branch 'memleak' of https://github.com/neosilky/feh into neosilky-memleakDaniel Friesel-0/+7
2016-05-01src/main.c: free the malloc'ed sections of the optionsDaniel Lockyer-0/+3
2016-05-01src/wallpaper.c: free up some data allocated by X.Daniel Lockyer-0/+7
The if statements are needed because we cannot pass a NULL pointer to XFree.
2016-05-01src/feh_png.c: close file upon errorDaniel Lockyer-1/+4
2016-04-24winwidget_render_image: re-zoom image in scaledown/geometry mode after ↵Daniel Friesel-2/+11
ConfigureNotify event
2016-04-16help: Add --no-recursiveDaniel Friesel-1/+3
2016-04-16bugfix and version bump (closes #230)2.15.2Daniel Friesel-1/+1
2016-04-14also respect w key in --geometry mode, update changelog and manualDaniel Friesel-1/+2
2016-04-13fix image resize for w key and menu option (#229)Daniel Friesel-7/+12
2016-04-09changelog, BC case or [ -L %F ] and similar actions using /bin/[Daniel Friesel-1/+2
2016-02-26Add option "--no-recursive"guraga-0/+3
Purpose of "--no-recursive" option is disabling effect of "--recursive" option that enabled by user's theme.
2016-02-20update year in copyright noticeDaniel Friesel-1/+1
2016-02-18filelist: Do not print error when a correct filelist file is specifiedDaniel Friesel-6/+10
2016-02-18also, don't fclose() /dev/stdinDaniel Friesel-1/+2
2016-02-18filelist: Don't try to fopen() stdin (it's a stream, not a file)Daniel Friesel-1/+7
2016-02-16menu: Fix typoDaniel Friesel-1/+1
2016-02-10add preliminary action-title support (#224)Daniel Friesel-6/+17
2016-01-08options.c: Use help.inc, not help.raw (the latter isn't formatted properly)Daniel Friesel-1/+1
2016-01-07Changes:William Woodruff-9/+17
* Added an --insecure option to disable host/peer verification in libcurl. This allows feh to load images on HTTPS hosts with self-signed certificates. For security, this is not the default. * Fixed an include in show_usage.
2015-11-15winwidget.c: never scale down thumbnail list windowDaniel Friesel-1/+3
this fixes a segfault when combining --scale-down and --thumbnails on a sufficiently large directory
2015-11-15zoom: implement scale-down without flickerRichard Molitor-31/+8
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-11-15events: also react to ConfigureNotify after mappingRichard Molitor-2/+13
2015-09-29also mark images as removed/processed when clicking on them in thumbnail ↵Daniel Friesel-2/+5
mode and --action is specifed
2015-07-23use --xinerama-index instead of XINERAMA_INDEX to override xinerama screen ↵Daniel Friesel-10/+8
selection
2015-07-06allow --sort and --randomize to override each other (issue #199)Daniel Friesel-6/+10
2015-06-26Merge pull request #185 from shiponi/masterDaniel Friesel-1/+6
slideshow: When removing last image, stay on the last image
2015-06-26adjust coding style in patch, always free gc, coherent HAVE_LIBXINERAMA wrappingDaniel Friesel-37/+25
2015-06-22support background setter for specific screenJames Knight-20/+83
The following adds the ability, when using `feh` as a background setter, to use a specific Xinerama screen to render a provided image. Along with the provided '--bg-*' option, the '--xinerama-index' argument will be used to identify the index of the detected Xinerama screen to use. Signed-off-by: James Knight <james.d.knight@live.com>
2015-06-22ensure fehbg is free'edJames Knight-1/+2
The 'fehbg' variable can be allocated whether or not the user wishes to generated a fehbg file. Ensure the variable is free'ed before we return. Signed-off-by: James Knight <james.d.knight@live.com>
2015-05-23winwidget: resize: only check scale_down when not in fullscreen mode (closes ↵Daniel Friesel-2/+2
#192)
2015-05-17version bump2.13Daniel Friesel-1/+1
2015-04-12themes: allow '' for quoting as well (closes #132, see also #187)Daniel Friesel-2/+5
2015-04-07fix gib_imlib_save_image_with_error_return in imported giblib codeDaniel Friesel-39/+20
2015-04-07feh_file_info_preload: free feh_file data structure when removing list itemsDaniel Friesel-1/+3
2015-04-06im_weprintf: fix memory leak when winwidget is not setDaniel Friesel-0/+2
2015-04-06--max-dimension: ignore width/height limit of 0 pixelsDaniel Friesel-0/+4
2015-03-08slideshow: When removing last image, stay on the last imageLior Shiponi-1/+6
2015-01-09Make --scale-down work with --geometry.Ilion Beyst-22/+33
2014-12-05exif.c: do sort-of-bounds-check before accessing the exif array (closes #179)Daniel Friesel-3/+3
2014-08-28menu: do not rerender all images when toggling keep_zoom_vpDaniel Friesel-1/+0
This way, the current image settings are used when enabling keep_zoom_vp. It used to reset the current image to default, which probably wasn't very intuitive.
2014-08-27--(un)loadable: print progress (to stderr) when run with --verbose (closes #134)Daniel Friesel-2/+14