Skip to content
Snippets Groups Projects
  1. Oct 17, 2018
    • Birte Kristina Friesel's avatar
      Use random() instead of rand() to increase portability · 9803fc41
      Birte Kristina Friesel authored
      Quoting glibc rand(3):
      
      The  versions  of rand() and srand() in the Linux C Library use the same random
      number generator as random(3) and srandom(3), so the lower-order bits should be
      as  random  as  the  higher-order bits.   However,  on  older  rand()
      implementations, and on current implementations on different systems, the
      lower-order bits are much less random than the higher-order bits.  Do not use
      this function in applications intended to be portable when good randomness is
      needed.  (Use random(3) instead.)
      9803fc41
  2. Aug 29, 2018
  3. Aug 24, 2018
  4. Aug 18, 2018
  5. May 11, 2018
  6. Apr 04, 2018
  7. Mar 10, 2018
  8. Feb 25, 2018
  9. Feb 14, 2018
  10. Jan 24, 2018
  11. Jan 19, 2018
    • ulteq's avatar
      Removes unnecessary code · c8a4e7da
      ulteq authored
      Halves the start-up time of the slideshow if the title contains data from 'file->info'
      c8a4e7da
  12. Jan 14, 2018
  13. Jan 02, 2018
  14. Oct 03, 2017
  15. Feb 23, 2017
  16. Jan 12, 2017
  17. Jan 11, 2017
  18. Aug 21, 2016
  19. Jun 06, 2016
  20. May 28, 2016
    • guns's avatar
      Add prev_dir and next_dir navigation actions · 36b09fa0
      guns authored
      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
      36b09fa0
  21. Apr 07, 2015
  22. Mar 07, 2015
  23. Aug 03, 2014
  24. May 11, 2014
  25. May 06, 2014
  26. Apr 10, 2014
  27. May 31, 2013
  28. May 09, 2013
  29. May 06, 2013
  30. Jan 30, 2013
  31. Dec 06, 2012
  32. Nov 13, 2012
  33. Sep 12, 2012
  34. Aug 12, 2012
  35. Jul 18, 2012
  36. Mar 13, 2012
  37. Mar 12, 2012
Loading