summaryrefslogtreecommitdiff
path: root/src/feh.h
AgeCommit message (Collapse)AuthorLines
2022-01-16remove local getopt_long() implementationGuilherme Janczak-1/+1
getopt_long() is widely supported these days, removing it from the source tree should be okay. Here's documentation or the implementation of getopt_long on many systems: All the BSDs: https://man.netbsd.org/NetBSD-9.2-STABLE/getopt_long.3 https://man.openbsd.org/OpenBSD-7.0/getopt_long https://www.freebsd.org/cgi/man.cgi?query=getopt_long https://leaf.dragonflybsd.org/cgi/web-man?command=getopt_long Illumos (OpenSolaris fork): https://illumos.org/man/3c/getopt_long The musl, newlib, and uclibc-ng libcs: https://gogs.waldemar-brodkorb.de/oss/uclibc-ng/src/master/libc/unistd/getopt_long-simple.c#L49-L52 https://git.musl-libc.org/cgit/musl/tree/src/misc/getopt_long.c#n140 https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdlib/getopt.c;h=d4f225a7a735dc741d2874eb6c131b6fce2967c5;hb=HEAD#l475 Mingw-w64: https://github.com/mirror/mingw-w64/blob/master/mingw-w64-crt/misc/getopt.c#L542-L549 Mac OS X: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/getopt_long.3.html
2021-01-09distinguish between "missing magic bytes" and "no Imlib 2 loader" errorsDaniel Friesel-1/+9
2020-06-15Enable --version-sort on systems without strverscmp()Tim van der Molen-1/+4
The --version-sort option requires strverscmp(), but this is a glibc extension that does not exist on OpenBSD and other systems. To enable --version-sort on those systems, provide an internal implementation of strverscmp(). The implementation is from the musl C library and is MIT-licensed. The build process remains the same: the verscmp flag should be set to 1 only if strverscmp() is available in libc. If verscmp is 0, then the internal implementation is used.
2020-04-11update copyrightDaniel Friesel-1/+1
2019-04-12Merge branch 'master' of https://github.com/swillner/feh into swillner-masterDaniel Friesel-0/+3
2019-04-05Correctly round human-readable file sizeDaniel Friesel-1/+1
Closes #463
2019-04-01Merge remote-tracking branch 'original/master'Sven Willner-1/+0
2018-10-02Actually remove collage mode after ~7 years.Olof-Joachim Frahm-1/+0
2018-09-13Merge branch 'master' of github.com:derf/fehSven Willner-5/+14
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2018-02-28Add Makefile flag to disable version sorting on C libraries without strverscmpDaniel Friesel-0/+7
2018-02-28Merge branch 'natural-sort' of https://github.com/ulteq/feh into ↵Daniel Friesel-0/+1
ulteq-natural-sort
2018-02-27Merge branch 'custom-background-color' of https://github.com/ulteq/feh into ↵Daniel Friesel-2/+0
ulteq-custom-background-color
2018-02-14Only check image dimensions on the fly in multiwindow and slideshow modeDaniel Friesel-0/+1
This introduces a new feh_should_ignore_image function which is called at appropriate places in those modes to skip images which are loadable but undesired.
2018-01-24Simplify window title generationulteq-2/+0
2018-01-23Add natural sort of (version) numbersulteq-0/+1
2018-01-17Allow any XColor values as --image-bg argumentPaul O'Day-2/+0
2017-09-13Improve handling of lost terminalsDaniel Friesel-1/+3
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-08-29Handle detaching the controlling tty from a feh processDaniel Friesel-0/+2
2017-08-24added inotify supportSven Willner-0/+3
2017-08-22Add experimental support for (remote) control via stdinDaniel Friesel-0/+1
2017-02-26Also update window title for thumbnail windows (closes #280)Daniel Friesel-0/+1
2017-01-12Pass windidget to feh_action_run, making it possible to use format specifiersANogin-1/+1
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-08-28dedup key/button initializationDaniel Friesel-0/+1
2016-08-27Key actions can now also be bound to buttons. not vice versa, thoughDaniel Friesel-0/+1
2016-05-28Add prev_dir and next_dir navigation actionsguns-1/+3
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
2015-04-07fix gib_imlib_save_image_with_error_return in imported giblib codeDaniel Friesel-2/+0
2014-05-06remove gib_utils, the same functionality is provided by utils alreadyDaniel Friesel-1/+0
2014-05-04strip unneded parts from giblib, part 1Daniel Friesel-1/+5
Not all functions were examined yet. Also TODO: * check strdup / malloc calls (some are apparently unchecked in giblib), maybe use estrdup / emalloc for those * Check includes and update dependency list if needed
2014-04-26respect --image-bg=checks in fullscreen mode (closes #156)Daniel Friesel-1/+1
2012-09-12print imlib2 error strings when save failedDaniel Friesel-0/+1
2012-09-12Proper workaround for broken gib_imlib_save_image_with_error_returnDaniel Friesel-0/+2
2012-08-12Add %o, %r and %z format specifiers (see #95)Daniel Friesel-2/+2
2012-03-13Experimental code to limit imagemagick convert runtime (see #82)Daniel Friesel-0/+3
Problems so far: * leaks zombie processes * does not work when terminating feh with a signal (since the convert process is no longer in feh's process group)
2012-03-03use convert (imagemagick) for unsupported file typesDaniel Friesel-1/+0
2012-02-26feh_printf: Fix/Add %S/%P for human-readable sizes, use them in --listDaniel Friesel-0/+1
2012-01-27optional exif support (build with exif=1), initial patch importDaniel Friesel-0/+3
2011-09-28Use buttons config instead of button optionsDaniel Friesel-0/+1
2011-09-28Set max/min zoom for both key and mouse zoomingDaniel Friesel-0/+3
2011-09-13Use enum for opt.image_bg, rename --image-bg default to --image-bg checksDaniel Friesel-0/+2
2011-09-01Revert "feh_reload_image: Always die if reload failed"Daniel Friesel-1/+1
This reverts commit 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce.
2011-08-31feh_reload_image: Always die if reload failedDaniel Friesel-1/+1
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-23Fix default zoom behaviourDaniel Friesel-1/+1
67e41d607413d8e95124b1d28b6ae74924e74ab9 moved the ZOOM_MODE from options.h defines to a feh.h enum, but did not set the values correctly.
2011-08-23Add --draw-tinted option to draw overlay text on a semi-transparent ↵Daniel Friesel-0/+4
background (closes #60, #61) By default, feh draws white text with a black drop-shadow, which is well readable in most, but not all cases. The --draw-tinted option draws a semi-transparent black box around all texts. This improves readability, but does not look as nice, so it won't become default behaviour. It was suggested to use #7f7f7f7f for the background, but I decided that for small images surrounded by a black border.
2011-08-11Show correct file number after deleting imageDaniel Friesel-1/+1
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-09Merge patch by livibetter: Add flip and mirror in-place edit actions (closes ↵Daniel Friesel-2/+5
#53)
2011-08-09Add flip/mirror in-placec edit actions (derf/#9)Yu-Jie Lin-0/+3
2011-04-30Initial support for in-image warning display (closes #43)Daniel Friesel-0/+2
2011-04-26Only create caption directory when writing out a caption (closes #42)Daniel Friesel-1/+1
2011-04-22Remove unused feh_strip_hostname functionDaniel Friesel-1/+0