Skip to content

feat: undo and redo reversible file operations #22

Closed

Description

@nextestudios

Summary

Undo/redo for operations that can be reversed reliably (rename, move, copy, Recycle Bin delete).

Motivation

Mistakes with a controller happen; a real undo increases confidence.

Requirements

  • Only offered when a documented, tested inverse exists (e.g. rename back, move back, restore from Recycle Bin, delete a copy we created).
  • Refuses to undo if the file system changed since (target exists, source missing) and explains why.
  • Never offers a generic undo for permanent deletes or overwrites.

Controller UX

Menu → Undo / Redo, and an action in the operation result dialog.

Technical Notes

Built on operation history entries with enough metadata to invert.

Acceptance Criteria

  • Undo of a rename restores the previous name.
  • Undo is refused with a reason when the state changed.

Testing

Unit tests for new branches and for every bug reproduced before a fix (no trivial variations, see AGENTS.md).

Dependencies


Priority: medium · Milestone: 1 · Core File Operations

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: operationsmoscow: shouldtype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions