Skip to content

feat: delete to the Windows Recycle Bin with explicit permanent-delete fallback #12

Closed

Description

@nextestudios

Summary

Delete selected items by sending them to the Recycle Bin; permanent deletion only with a separate, explicit confirmation.

Motivation

Delete is missing, and on Windows users expect the Recycle Bin as a safety net.

Requirements

  • Uses the Windows Shell (IFileOperation with FOFX_RECYCLEONDELETE, or equivalent) through IShellService/the operation engine.
  • When the location cannot recycle (e.g. some removable or network drives), the dialog states that deletion is permanent and requires a specific confirmation that starts on Cancel.
  • A failure to recycle never silently becomes a permanent delete.
  • Works for single and multiple selections; the result lists each item.
  • After deleting, focus moves to the next item (or previous at the end).

Controller UX

North → Delete… (or the action bar when items are marked) → confirmation dialog focused on Cancel → confirm with South/A.

Technical Notes

Windows-only code in ControlFS.Infrastructure.Windows/Shell; orchestration in AppController; dialogs via DialogModal with sensitive: true.

Acceptance Criteria

  • Deleted items appear in the Windows Recycle Bin.
  • Permanent delete requires its own confirmation and is never the silent fallback.
  • Focus lands on a valid neighbour after deletion.

Testing

Unit tests for new branches and for every bug reproduced before a fix (no trivial variations, see AGENTS.md). Windows integration test that deletes a temp file and finds it in the Recycle Bin. Manual: delete from a USB drive.

Dependencies


Priority: critical · Milestone: 1 · Core File Operations

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: operationsarea: windowspriority: criticaltype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions