summaryrefslogtreecommitdiff
path: root/src/slideshow.c
AgeCommit message (Collapse)AuthorLines
2018-02-14Merge branch 'dimension-pruning-without-preload' of ↵Daniel Friesel-6/+12
https://github.com/ulteq/feh into ulteq-dimension-pruning-without-preload
2018-01-24Simplify window title generationulteq-47/+9
2018-01-19Removes unnecessary codeulteq-7/+1
Halves the start-up time of the slideshow if the title contains data from 'file->info'
2018-01-14Handle --min-dimension and --max-dimension without preloadulteq-6/+12
This will (by default) check the image dimension on-the-fly, but you can still do it beforehand by specifying the preload flag.
2017-10-03Make shell_escape available as a generic utility functionDaniel Friesel-23/+0
2017-02-23Fix memory leak when closing images opened from thumbnail modeDaniel Friesel-0/+1
2017-01-12Pass windidget to feh_action_run, making it possible to use format specifiersANogin-2/+2
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).
2017-01-11rewrite window title whenever the image is rendered (closes #266)Daniel Friesel-0/+2
2016-08-21reload timer: always call prepare_filelist for sorting etc (closes #200)Daniel Friesel-2/+2
2016-06-06next/priv directory: Use PATH_MAX instead of FEH_MAX_DIRNAME_LENDaniel Friesel-6/+6
2016-05-28Add prev_dir and next_dir navigation actionsguns-0/+38
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-06-26Merge pull request #185 from shiponi/masterDaniel Friesel-1/+6
slideshow: When removing last image, stay on the last image
2015-04-07fix gib_imlib_save_image_with_error_return in imported giblib codeDaniel Friesel-1/+1
2015-03-08slideshow: When removing last image, stay on the last imageLior Shiponi-1/+6
2014-08-03make all opt.verbose messages print to stderrNoah Birnel-1/+1
manually changed in collage, imlib, filelist, thumbnail, slideshow, index feh_display_status also changed
2014-05-11feh_printf: Fix buffer overflow when handling unknown format specifiersDaniel Friesel-1/+2
2014-05-06Fix dead code found by LLVM's scan-build utilityDaniel Friesel-1/+1
2014-04-10re-randomize after list is throughRoland Angerer-1/+7
2013-05-31fix some clang warningsDaniel Friesel-22/+22
2013-05-09fix feh_printf buffer overflowsDaniel Friesel-24/+24
2013-05-06Add %L format code (temporary copy of filelist)David Gowers-0/+13
2013-01-30Add option and keybinding to keep zoom and viewport settings.Daniel Friesel-3/+47
Patch by sdaau on IRC. Thanks!
2012-12-06work around last image deletion bug with --cycle-once (closes #107)Daniel Friesel-0/+8
2012-11-13Add %V format specifier (returns feh PID) - patch by 0ion9, closse #109Daniel Friesel-0/+4
2012-09-12print imlib2 error strings when save failedDaniel Friesel-1/+1
2012-09-12Proper workaround for broken gib_imlib_save_image_with_error_returnDaniel Friesel-7/+1
2012-08-12Add %o, %r and %z format specifiers (see #95)Daniel Friesel-33/+52
2012-07-18slideshow: -D and -R need not be mutually exclusiveDaniel Friesel-1/+1
2012-03-13slideshow_change_image: do not jump to current image on random jump (closes #85)Daniel Friesel-2/+5
2012-03-13Experimental code to limit imagemagick convert runtime (see #82)Daniel Friesel-2/+0
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-01quiet/verbose adjustmentsDaniel Friesel-1/+1
2012-02-26feh_printf: Fix/Add %S/%P for human-readable sizes, use them in --listDaniel Friesel-6/+19
2012-01-15Add %F and %N printf sequences for escaped file name (closes #77)Daniel Friesel-0/+31
2011-10-09slideshow.c: Warn about unknown format specifiers, fix handling of trailing ↵Daniel Friesel-4/+8
% and \
2011-09-29feh_printf: Add %S (size in kB)Daniel Friesel-0/+7
2011-09-29feh_printf: Check feh_file_info_load return statusDaniel Friesel-15/+5
2011-09-07feh_reload_image: Fix regression of old caching issue (closes #63)Daniel Friesel-5/+13
This was broken by the changes allowing --reload to retry ad infinitum. Now force_new is used to decide whether or not to work around the Imlib2 caching issue. Because of this, a few feh_reload_image calls needed to be changed.
2011-09-02Fix memory leak in cb_reload_timer (--reload for directories) (closes #62)Daniel Friesel-2/+6
Patch by livibetter
2011-09-01feh_reload_image: Try to reload unloadable (still existing) images ad infinitumDaniel Friesel-4/+5
This commit removes the feh_file_remove_from_list call from feh_reload_image. We can safely do this because if the file itself was removed, cb_reload_timer will take care of updating the filelist, and in all other cases it is intended to leave the image in the filelist and retry. A warning will be displayed in the image if the reload failed.
2011-09-01Revert "feh_reload_image: Always die if reload failed"Daniel Friesel-6/+16
This reverts commit 8b79bc33f37db12cbb672bdb47dcfeb0f2030bce.
2011-08-31feh_reload_image: Always die if reload failedDaniel Friesel-16/+6
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-15Convert C++ style comments to /* */Daniel Friesel-5/+6
2011-08-15slideshow.c: Make --reload properly handle --geometry/--fullscreen (closes #57)Daniel Friesel-1/+1
2011-08-13Add reload functionality for directories (derf#14)Yu-Jie Lin-0/+43
2011-08-11Show correct file number after deleting imageDaniel Friesel-4/+6
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-10Remove unused variablesDaniel Friesel-2/+0
2011-08-10slideshow.c: save_image: Fix handling of capital file endings (closes #51)Daniel Friesel-1/+8
gib_imlib_save_image_with_error_return was used, but it tries to set the Imlib image format by examining the filename to save to. However, it only supports lowercase file endings (as in .jpg) and breaks with others (like .JPG). Since giblib is unmaintained, for now the fix is only used here.
2011-04-30Initial support for in-image warning display (closes #43)Daniel Friesel-3/+3
2011-04-16feh_reload_image: Work around broken Imlib2 caching (closes #39)Daniel Friesel-15/+13
2011-03-21Add method to forcefully disable antialiasing (closes GH-17)Daniel Friesel-2/+2