summaryrefslogtreecommitdiff
path: root/src/options.c
AgeCommit message (Collapse)AuthorLines
2021-03-05Set original_file_items when using --start-at without file argumentsDaniel Friesel-0/+1
This makes --(auto-)reload use the directory specified at --start-at instead of the current working directory. Closes #597
2021-03-03Option Refactor and addition of Zoom Rate (#589)Alec C-199/+211
* fixed for simpler parenthesis matching * absolute file path for .fehbg, moved script creation into helper function * Removed unused variable. * added early exit condition as per Ferada's suggestion * Added enum for options to improve readability * migrated options to enum. * added support for zoom specification through options * added man entry for zoom-rate * added help entry for zoom-rate commands * updated man to have warnings about strange values for zoom options * fix memory leak (free exec_absolute_path) * added detection for path vs env PATH launch for use in .fehbg script gen. * Added enum for options to improve readability * migrated options to enum. * added support for zoom specification through options * added man entry for zoom-rate * added help entry for zoom-rate commands * updated man to have warnings about strange values for zoom options * Update help.raw removed zoom-in/out * removed zoom-in/out from options * updated man/help entry to remove in/out zoom specification * sanitize --zoom-rate in options parser; use a single variable for storing it Co-authored-by: Daniel Friesel <derf@finalrewind.org>
2021-01-24Handle URL-encoded components in "feh --start-at file://...."Daniel Friesel-3/+18
Closes #584
2021-01-09Rename --windowid to --window-id; add usage warning to documentationDaniel Friesel-1/+1
2021-01-09X11 uses unsigned long int for window IDs (see X11/X.h)Daniel Friesel-1/+1
2020-07-24Add windowid option to draw to an existing windowKate Hart-0/+4
This lets `feh` draw the background pixmap of an existing window, opening the door for use with tools like `xscreensaver` or `xsecurelock`
2020-06-17re-add verscmp flag to --version outputDaniel Friesel-0/+4
2020-06-15Enable --version-sort on systems without strverscmp()Tim van der Molen-4/+0
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
2020-04-11Handle file:/// URLs as local paths in --start-atDaniel Friesel-1/+10
2020-04-05Use conversion cache for imlib2 and dcraw imagesDaniel Friesel-3/+3
2020-03-30Enable HTTP cache by defaultDaniel Friesel-2/+4
2020-03-30Enable re-using downloaded http cacheAwal Garg-0/+4
2020-01-23Ignore --start-at if the parameter is an URLIgnacio Losiggio-1/+3
2019-10-11Allow setting the X11 class hint as an option.Olof-Joachim Frahm-0/+4
2019-04-12Enable auto-reload by default (when compiled with inotify=1)Daniel Friesel-0/+6
2019-04-01Merge remote-tracking branch 'original/master'Sven Willner-29/+39
2019-02-11Unset "draw info" flag when encountering --info ';whatever'Daniel Friesel-2/+4
Otherwise, several --info switches will not properly override each other
2019-02-11Unset "start paused" flag on positive slideshow delayDaniel Friesel-0/+2
This fixes "feh -D -1 -D 1" and similar starting the slideshow in paused mode even though the last -D option specifies autostart.
2019-02-01Remove dead codeDaniel Friesel-2/+0
closes #458
2018-12-23options.c: Note that sscanf calls are safeDaniel Friesel-0/+9
2018-11-19--start-at: Auto-load directory when no other files are specifiedDaniel Friesel-0/+13
This changes the behaviour of "feh --start-at FILENAME" as follows: Previously, this would cause feh to load all files in the current working directory, since no files or filelists were specified on the command line. Now this is a special case: feh will extract the directory component from FILENAME, load all files in that directory, and display FILENAME. This way, it's possible to use "feh --start-at ~%f" in XDG Desktop files and browse files in feh using the prev/next keys Closes #372 Closes #420
2018-11-09options.c: Remove '-)' (belonged to menu-bg)Daniel Friesel-1/+1
2018-11-05Remove no longer present -c option from stroptsDaniel Friesel-1/+1
2018-11-05Remove deprecated option --menu-bgDaniel Friesel-7/+0
2018-11-05Remove deprecated --cycle-once optionDaniel Friesel-5/+0
2018-11-04Disable in-place editing by defaultDaniel Friesel-4/+4
2018-11-04Merge branch 'no-inplace-edit' of https://github.com/ulteq/feh into ↵Daniel Friesel-0/+4
ulteq-no-inplace-edit
2018-11-04Merge branch 'remove-collage-mode' of https://github.com/Ferada/feh into ↵Daniel Friesel-11/+1
Ferada-remove-collage-mode
2018-11-04Show verscmp status in --version outputDaniel Friesel-0/+4
2018-10-02Actually remove collage mode after ~7 years.Olof-Joachim Frahm-11/+1
2018-09-13Merge branch 'master' of github.com:derf/fehSven Willner-22/+60
2018-08-24combine --no-cycle and --cycle-once into --on-last-slide={quit,hold}Daniel Friesel-3/+13
2018-08-24Add --no-cycle optionulteq-0/+4
Closes: #124
2018-08-22Add an option to disable inplace editulteq-0/+4
2018-08-05Merge --dcraw-timeout and --magick-timeout into --conversion-timeoutDaniel Friesel-5/+5
2018-08-05Merge branch 'dcraw' of https://github.com/ulteq/feh into ulteq-dcrawDaniel Friesel-0/+5
2018-06-27Merge branch 'simplify-zoom' of https://github.com/ulteq/feh into ↵Daniel Friesel-0/+1
ulteq-simplify-zoom
2018-05-11Update copyright noticeDaniel Friesel-1/+1
2018-03-10Allow empty string as --geometry argumentulteq-0/+1
Passing an empty string to the --geometry option will enable fixed geometry mode without having to specify anything else
2018-03-09rename --inner-geometry to --offset, discard width and height valuesDaniel Friesel-3/+3
2018-03-08add (experimental and still slightly buggy) --inner-geometry featureDaniel Friesel-0/+5
See #278
2018-03-03Utilize dcraw to preview RAW filesulteq-0/+5
Uses the camera-generated thumbnail to display RAW images that could otherwise not be loaded.
2018-02-28Merge branch 'natural-sort' of https://github.com/ulteq/feh into ↵Daniel Friesel-0/+4
ulteq-natural-sort
2018-02-27Merge branch 'custom-background-color' of https://github.com/ulteq/feh into ↵Daniel Friesel-8/+1
ulteq-custom-background-color
2018-02-14Only check image dimensions on the fly in multiwindow and slideshow modeDaniel Friesel-0/+2
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-02-09parse_options_from_string: only leave quote if start and end character matchDaniel Friesel-4/+6
Closes #381
2018-01-29Include system headers before local ones to fix type conflict on OpenBSDDaniel Friesel-1/+2
2018-01-23Add natural sort of (version) numbersulteq-0/+4
2018-01-17Allow any XColor values as --image-bg argumentPaul O'Day-8/+1