Skip to content

✨ Deletor v2.0.0 — Release Notes

Latest

Choose a tag to compare

@pashkov256 pashkov256 released this 04 Apr 14:02
c95e016

🎉 Major Updates

⏱ One-off Scheduled Clean (TUI)

  • Added a dedicated TUI page to schedule a single future clean run
  • Takes a snapshot of saved rules, then runs the clean once when the timer fires
  • Keeps the scheduling session-bound (the run happens while Deletor stays open)
  • Preserves directory mode when refreshing the clean view, and aligns validation behavior with the parser

PR: #318 #318


🧱 Centralized file filters + hardened rules handling

  • Centralized shared file filter state between CLI config and filemanager
  • Rules improvements:
    • Preserve rule values across partial updates
    • Cache rules reads
    • Validate persisted rule data before writing
    • Surface rule save failures in the TUI (instead of swallowing them)

PR: #317


🧩 CLI Improvements / Fixes

📈 CLI progress wiring fix

  • Fixed CLI progress plumbing
  • Extended regression coverage around the parser and TUI refresh path (to prevent related regressions)

PR: #318 #318


🐛 TUI UX & Reliability

🧾 Show errors in Clean cache view

  • Added Error *errors.Error field to CacheModel (same pattern as the rules view)
  • Errors are displayed with type-specific styling via errors.GetStyle()
  • Unsupported OS (darwin) and failed ClearCache() operations now show proper ErrorTypeFileSystem
  • Error is cleared when a new scan is initiated
  • Success messages use SuccessStyle instead of InfoStyle

PR: #275 #275


😀 Option to disable emojis

  • Added a TUI option to disable emojis

PR: #274 #274


🔄 Spinner while processing files

  • Added a spinner when files are being processed

PR: #273 #273


🧰 Utils / Platform

🏠 ExpandTilde now supports ~username

  • Added support for expanding ~username paths via os/user.Lookup()
  • Fixed path splitting for both Unix (/) and Windows (\) separators
  • Improved error handling: if user lookup fails, the original path is returned (backward compatible)
  • Added comprehensive unit tests (including edge cases)

PR: #295 #295


🧪 Testing & Coverage Improvements

✅ New unit tests and regression coverage

  • Table-driven unit tests for:
    • ParseExtToSlice
    • ParseExcludeToSlice
  • Comprehensive unit tests for internal/path
  • Added / expanded regression coverage around new scheduling flow and TUI refresh behavior

PRs:

  • #300
  • #297
  • #293 (similar scope around parser tests; include if it landed separately)

Other test/infra PRs from this cycle

  • #271 — tests for GetNextOption
  • #290 — tests for IsEmptyDir and ExpandTilde
  • #277 — tests for ParseTimeDuration
  • #258 — CLI flags parsing tests + coverage boost
  • #257 — tests for DeleteFileWithWindowsAPI
  • #256 — TabManager test coverage
  • #255 — fix: #254 fmt unix cache test
  • #265 — JSON logging support for CLI

🔗 Related PRs (short list)

  • #318 — feat: add one-off scheduled clean flow
  • #317 — refactor: centralize file filters and harden rules handling
  • #300 / #297 / #295 / #275 / #274 / #273 — features/tests/polish (links above)

New Contributors