Skip to content
Snippets Groups Projects
  1. Apr 08, 2020
  2. Feb 10, 2020
  3. Feb 04, 2019
  4. Mar 29, 2018
  5. Jan 29, 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. Aug 24, 2016
  9. Sep 20, 2015
  10. Jan 22, 2014
    • Yorhel's avatar
      Copyright year update · efece12c
      Yorhel authored
      efece12c
    • Yorhel's avatar
      Add support for browsing empty directories · fe932c7b
      Yorhel authored
      Turns out that being able to open an empty directory actually has its
      uses:
      - If you delete the last file in a directory, you now won't be directed
        to the parent directory anymore. This allows keeping 'd' pressed
        without worrying that you'll delete stuff outside of the current dir.
        (This is the primary motivation for doing this)
      - You can now scan and later refresh an empty directory, as suggested by
        #2 in http://dev.yorhel.nl/ncdu/bug/15
      fe932c7b
  11. Jan 18, 2012
  12. Oct 31, 2011
  13. Apr 28, 2010
  14. Apr 27, 2010
  15. Feb 27, 2010
    • Yorhel's avatar
      Link hard linked files together with a circular linked list · 88cd199d
      Yorhel authored
      The directory sizes are now incorrect as hard links will be counted
      twice again (as if there wasn't any detection in the first place), but
      this will get fixed by adding a shared size field.
      
      This method of keeping track of hard links is a lot faster and allows
      adding an interface which lists the found links.
      88cd199d
    • Yorhel's avatar
      Copyright year bump · 101731ed
      Yorhel authored
      101731ed
  16. Oct 18, 2009
  17. Jun 06, 2009
  18. May 16, 2009
  19. May 11, 2009
    • Yorhel's avatar
      Properly select the next item after deletion · 06a5f521
      Yorhel authored
      Setting FF_BSEL after calling browse_init() causes two items to be
      selected, as browse_init() makes sure something will be selected,
      while calc_process() assumes nothing is, because the previously
      selected item had just been deleted.
      06a5f521
    • Yorhel's avatar
      Use correct hard link information after partial recalculation or deletion · 6de0a8ec
      Yorhel authored
      Hard link detection is now done in a separate pass on the in-memory tree,
      and duplicates can be 'removed' and 're-added' on the fly. When making any
      changes in the tree, all hard links are re-added before the operation and
      removed again afterwards.
      
      While this guarantees that all hard link information is correct, it does
      have a few drawbacks. I can currently think of two:
      
       1. It's not the most efficient way to do it, and may be quite slow on
          large trees. Will have to do some benchmarks later to see whether
          it is anything to be concerned about.
      
       2. The first encountered item is considered as 'counted' and all items
          encountered after that are considered as 'duplicate'. Because the
          order in which we traverse the tree doesn't always have to be the
          same, the items that will be considered as 'duplicate' can vary with
          each deletion or re-calculation. This might cause confusion for
          people who aren't aware of how hard links work.
      6de0a8ec
  20. Apr 28, 2009
  21. Apr 26, 2009
  22. Apr 23, 2009
  23. Apr 19, 2009
  24. Jan 11, 2009
  25. Aug 02, 2008
Loading