github Byron/dua-cli v2.35.0

4 hours ago

New Features

  • Add gitignore-aware cleanup marking
    Ignored files and directories are detected from the repository’s ignore rules, including .gitignore. Git-ignored entries are shown dimmed in the entries list.

    Press I to mark all currently visible Git-ignored entries, or i to disable Git support.

    Ignored directories are handled recursively: if a directory such as target/ is ignored, entries shown after entering that directory are treated as ignored as well.

    Git-ignored entries are separate from built-in cleanup candidates. An entry can be both Git-ignored and a cleanup candidate; in that case, both visual styles apply.

  • add dua i --once[="keys"] to make it easier to debug interactive mode in the real.
    Run interactive mode once, print the final TUI to the main terminal screen, then exit.

    dua i --once
    dua i --once=<keys>

    <keys> is optional. Each character is replayed after traversal finishes:

    dua i --once=jko

    Acts like pressing j, k, then o.

    Because --once does not use the alternate screen, the output stays visible in scrollback.

  • add interactive cleanup candidate marking with X
    Interactive mode can now highlight and select common cleanup directories in the current view with shift + X.

    When browsing a directory, dua detects existing directories with well-known cleanup names, including:

    • target
    • node_modules
    • __pycache__
    • .pytest_cache
    • .mypy_cache
    • .ruff_cache
    • .tox
    • .venv
    • venv

    Press X to mark all detected cleanup candidates in the current directory.
    The marked entries then appear in the mark pane, where they can be reviewed before using the existing delete or trash actions.

    Cleanup detection is intentionally conservative. Ambiguous names such as build and dist are not selected automatically.

  • cycle modified time display modes
    Users can now enable the modified-time column without changing the current sort:

    1. Press M while sorting by size, count, or name.
    2. The modified-time column is shown.
    3. Press M again to hide it.

    To sort by modified time:

    1. Press m to sort by mtime descending.
    2. Press m again to sort by mtime ascending.
    3. Press M while mtime sorting is active to cycle the mtime strategy:
      • normal entry mtime
      • newest descendant mtime
      • oldest descendant mtime

    The selected mtime strategy is preserved when toggling between ascending and descending mtime sort.

Commit Statistics

  • 6 commits contributed to the release.
  • 4 commits were understood as conventional.
  • 2 unique issues were worked on: #328, #331

Commit Details

view details
  • #328
    • Add interactive cleanup candidate marking with X (cb11cac)
  • #331
    • Cycle modified time display modes (5991f98)
  • Uncategorized
    • Merge pull request #338 from Byron/auto-clean (7c31299)
    • Add gitignore-aware cleanup marking (a346eff)
    • Add dua i --once[="keys"] to make it easier to debug interactive mode in the real. (a6482de)
    • Merge pull request #337 from Byron/recursive-mod-date (99840d0)

Don't miss a new dua-cli release

NewReleases is sending notifications on new releases.