Skip to content
Snippets Groups Projects
  1. Feb 04, 2019
  2. Jan 21, 2019
    • Alex Wilson's avatar
      add a max modified time, or mtime, view and sorting · 60fdac06
      Alex Wilson authored
      This adds an 'm' command to show the latest modified time of all files
      in a directory. The 'M' command allows for ascending and descending
      mtime sorting. These are only enabled with the -e flag and overload
      the dir_ext mtime field.
      60fdac06
  3. Jul 24, 2018
  4. Jan 29, 2018
  5. Jan 23, 2018
  6. Jan 21, 2018
  7. Jul 08, 2017
    • Yorhel's avatar
      Add support for colors and sprinkle some colors around · a369a43d
      Yorhel authored
      TODO:
      - Add (ls-like) colors to the actual file names
        -> Implement full $LS_COLORS handling or something simple and custom?
      - Test on a white/black terminal, and provide an alternate color scheme
        if necessary.
      - Make colors opt-in?
      a369a43d
  8. Jan 06, 2017
  9. Aug 24, 2016
  10. Sep 20, 2015
  11. Sep 19, 2015
  12. Aug 03, 2015
  13. Apr 05, 2015
  14. Dec 14, 2014
  15. Jan 22, 2014
  16. Jul 23, 2013
  17. Jun 05, 2013
  18. May 09, 2013
  19. Jan 13, 2013
  20. Sep 06, 2012
  21. Aug 27, 2012
    • Yorhel's avatar
      Added -u option to change the scan UI · 44e63ce2
      Yorhel authored
      This allows scanning stuff without initializing ncurses. Not too useful
      at this point since ncdu will switch to an ncurses environment when it's
      done anyway, but this will become more useful when the export-to-file
      feature has been implemented.
      44e63ce2
  22. Aug 26, 2012
    • Yorhel's avatar
      Fixed some compiler warnings and a (rather nonexistent) memory leak · e3808059
      Yorhel authored
      This silences clang and gcc with -O2 -Wall -Wextra
      e3808059
    • Yorhel's avatar
      Split calc.c into separate components (dir_(mem|scan|common).c) · 0fd7dec7
      Yorhel authored
      The architecture is explained in dir.h. The reasons for these changes is
      two-fold:
      - calc.c was too complex, it simply did too many things. 399ccdeb is a
        nice example of that: Should have been an easy fix, but it introduced
        a segfault (fixed in 0b49021a), and added a small memory leak.
      - This architecture features a pluggable input/output system, which
        should make a file export/import feature relatively simple.
      
      The current commit does not feature any user interface, so there's no
      feedback yet when scanning a directory. I'll get to that in a bit.
      
      I've also not tested the new scanning code very well yet, so I might
      have introduced some bugs.
      0fd7dec7
  23. Jan 18, 2012
  24. Oct 31, 2011
  25. Sep 09, 2011
  26. Aug 13, 2010
    • Yorhel's avatar
      Display size graph by default · 3860ba21
      Yorhel authored
      This used to be the default before 1.5, but for some reason the default
      changed in 1.5 and 1.6. Changing it back now, because the graph really
      is useful, and there's still enough space for the filename even in
      smaller terminals.
      3860ba21
  27. Jul 18, 2010
    • Yorhel's avatar
      browser.c: Got rid of the 'line' format string · 791612dc
      Yorhel authored
      This solution is far cleaner. Thanks to Ben North for pointing me to the
      *-width-specifier that has apparently been built into the printf-family
      functions for, well, quite a while, it seems.
      791612dc
  28. Apr 28, 2010
    • Yorhel's avatar
      Only create the line format once when drawing the browser window · d942a0eb
      Yorhel authored
      The memory for this format is now statically allocated as well. I
      was under the impression its size would depend on wincols, but this is
      the format we're talking about, the string does not have to hold the
      actual line contents. I must have been sleeping again...
      
      Oh well, this is a slight performance improvement, although it doesn't
      seem the be the cause of the browing slowness when running under
      valgrind. (Obviously running ncdu with valgrind is supposed to be
      slower, but the current performance is rather bad...)
      d942a0eb
    • Yorhel's avatar
      Reset descending/ascending order when changing sort column · d7d782be
      Yorhel authored
      This changes the behaviour back to it was before the dirlist
      abstraction, which is the behaviour I prefer.
      d7d782be
    • Yorhel's avatar
      More intuitive multi-page browsing · b7ccf78b
      Yorhel authored
      Here is the new multi-page listing functionality I promised in
      5db9c2ae.
      
      It may look very easy, but getting this to work right wasn't,
      unfortunately.
      b7ccf78b
  29. Apr 27, 2010
Loading