Skip to content

Show deleted bytes in the deletion status line - #405

Merged
Byron merged 1 commit into
mainfrom
del-remaining
Sep 25, 2026
Merged

Byron merged 1 commit into
mainfrom
del-remaining

Conversation

@Byron

@Byron Byron commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Tasks

  • refackiew

Created by Codex on behalf of Byron. Byron will review before this is ready to merge.

Summary

Show cumulative deleted bytes alongside the deleted item count in the bottom status line, for example Deleted 42 items (123 MB).... Apply the same change to trash operations and all five supported languages.

Context

Remaining sizes are already visible in the marked pane and total disk usage. The status message now uses the existing removed-byte counter, and the redundant remaining-byte field and updates are removed.

Validation

  • cargo test --locked --offline --bin dua deletion — 17 passed. The updated journey test checks progress starts at zero, counts removed bytes, and preserves the byte total when removing a zero-byte entry.
  • cargo fmt --all -- --check — passed.
  • git diff --check — passed.

User Prompts

When deleting, the statusline at the bottom shows what remeains. Instead, show what's deleted. After all, the remaining bytes are also visible in a couple of other places.

<!-- agent -->
Report deletion progress as the cumulative number and size of removed
entries. Remaining bytes are already visible in the marked pane and total
disk usage.

Reuse the removed-byte counter for the status message, remove the unused
remaining-byte counter, and update delete/trash wording in all five
languages. Extend the existing deletion journey to check the initial zero,
a successful removal, and a zero-byte removal while preserving failed marks.

Assisted-by: GPT 6.0
Co-authored-by: GPT 6.0 <codex@openai.com>
@Byron
Byron marked this pull request as ready for review September 25, 2026 02:43
@Byron
Byron merged commit d190513 into main Sep 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant