Skip to content
Snippets Groups Projects
  1. Aug 08, 2022
  2. Apr 28, 2022
  3. Mar 25, 2022
  4. Mar 16, 2022
  5. Mar 14, 2022
  6. Feb 07, 2022
  7. Feb 03, 2022
    • Yorhel's avatar
      Add --graph-style option and Unicode graph drawing · 7d290595
      Yorhel authored
      And also adjust the graph width calculation to do a better job when the
      largest item is smaller than the number of columns used for the graph,
      which would previously draw either nothing (if size = 0) or a full bar
      (if size > 0).
      
      Fixes #172.
      7d290595
  8. Feb 02, 2022
  9. Jan 01, 2022
  10. Dec 21, 2021
    • Yorhel's avatar
      Version 2.0 · 23c59f28
      Yorhel authored
      I'm tagging this as a "stable" 2.0 release because the 2.0-beta#
      numbering will get confusing when I'm working on new features and fixes.
      It's still only usable for people who can use the particular Zig version
      that's required (0.9.0 currently) and it will certainly break on
      different Zig versions. But once you have a working binary for a
      supported arch, it's perfectly stable.
    • Yorhel's avatar
      Fixes and updates for Zig 0.9.0 · 6a68cd9b
      Yorhel authored
      6a68cd9b
  11. Nov 09, 2021
  12. Oct 06, 2021
  13. Oct 05, 2021
  14. Sep 28, 2021
  15. Aug 16, 2021
  16. Jul 31, 2021
  17. Jul 26, 2021
    • Yorhel's avatar
      Add parent node pointers to Dir struct + remove Parents abstraction · 36bc405a
      Yorhel authored
      While this simplifies the code a bit, it's a regression in the sense
      that it increases memory use.
      
      This commit is yak shaving for another hard link counting approach I'd
      like to try out, which should be a *LOT* less memory hungry compared to
      the current approach. Even though it does, indeed, add an extra cost of
      these parent node pointers.
      36bc405a
  18. Jul 22, 2021
  19. Jul 18, 2021
  20. Jul 16, 2021
  21. Jul 14, 2021
  22. Jul 13, 2021
    • Yorhel's avatar
      Implement directory refresh · 6c2ab500
      Yorhel authored
      This complicated the scan code more than I had anticipated and has a
      few inherent bugs with respect to calculating shared hardlink sizes.
      
      Still, the merge approach avoids creating a full copy of the subtree, so
      that's another memory usage related win compared to the C version.
      On the other hand, it does leak memory if nodes can't be reused.
      
      Not quite as well tested as I should have, so I'm sure there's bugs.
      6c2ab500
  23. May 30, 2021
  24. May 29, 2021
    • Yorhel's avatar
      Improved error reporting + minor cleanup · 59ef5fd2
      Yorhel authored
      59ef5fd2
    • Yorhel's avatar
      Handle allocation failures · 23903088
      Yorhel authored
      In a similar way to the C version of ncdu: by wrapping malloc(). It's
      simpler to handle allocation failures at the source to allow for easy
      retries, pushing the retries up the stack will complicate code somewhat
      more. Likewise, this is a best-effort approach to handling OOM,
      allocation failures in ncurses aren't handled and display glitches may
      occur when we get an OOM inside a drawing function.
      
      This is a somewhat un-Zig-like way of handling errors and adds
      scary-looking 'catch unreachable's all over the code, but that's okay.
      23903088
    • Yorhel's avatar
      Implement JSON file import · c077c5be
      Yorhel authored
      Performance is looking great, but the code is rather ugly and
      potentially buggy. Also doesn't handle hard links without an "nlink"
      field yet.
      
      Error handling of the import code is different from what I've been doing
      until now. That's intentional, I'll change error handling of other
      pieces to call ui.die() directly rather than propagating error enums.
      The approach is less testable but conceptually simpler, it's perfectly
      fine for a tiny application like ncdu.
      c077c5be
  25. May 24, 2021
  26. May 23, 2021
    • Yorhel's avatar
      Implement all existing browsing display options + some fixes · 7b3ebf92
      Yorhel authored
      I plan to add more display options, but ran out of keys to bind.
      Probably going for a quick-select menu thingy so that we can keep the
      old key bindings for people accustomed to it.
      
      The graph width algorithm is slightly different, but I think this one's
      a minor improvement.
      7b3ebf92
  27. May 12, 2021
    • Yorhel's avatar
      Implement export to file · 231ab103
      Yorhel authored
      The exported file format is fully compatible with ncdu 1.x, but has a
      few minor differences. I've backported these changes in
      ca51d4ed
      231ab103
  28. May 09, 2021
Loading