Repository navigation
Replies: 3 comments
Two reference points on the conflict modelOn open question 2:
So I'd lean to (a) + (b), with (b) built from the conflict dialog rather than designed separately. |
0 replies
ProgressTwo of the three are done:
Still open: the operation journal with undo, and (b), a conflict policy chosen at detach time. |
0 replies
Closing
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Three ideas that look separate but share one foundation:
Kcurrently deletes permanently.All three need XeFM to treat a file operation as an object with a lifetime — a job that can be queued, observed, detached from the UI, and remembered afterwards — rather than as a modal interaction that is over when the dialog closes. I'd like to agree on that shape first, then land the three features on it.
Where things stand
Escmeans cancel (FILE_OPERATIONS_FEATURE.md, "Cancelling"). The work is in the background; the user is not.K/Delremoves files permanently, behind a confirmation dialog. There is no trash integration anywhere.1. Background execution
Interaction
Escin the progress dialog stops being an immediate cancel and becomes a choice, with the operation still running while the choice is shown:A fast path to "stop now" should survive — e.g.
Esctwice cancels.The hard part: conflicts
Overwrite / Skip / Rename prompts arrive mid-operation. A background job cannot raise a modal. Options:
(a) is the most general and composes with the others; (b) is a convenience on top.
Other decisions
Scope beyond copy/move
Archive create/extract, and future long-running work (duplicate detection, directory sync, AI-proposed plans), should all be jobs. That is the argument for building the abstraction rather than a background flag on the copy engine.
2. Delete to the OS trash
NSFileManager trashItemAtURL:; Windows:IFileOperationwith recycle-bin semantics. OS-native, consistent with how Connect to Server uses the OS rather than reimplementing it.ssh://,s3://and archive members have no trash. The capability decides: where there is no trash,Kfalls back to today's permanent delete, and the confirmation dialog says so explicitly.Shift-K) keeps the old behavior one key away.3. Operation journal and undo
Open questions
state.db), or be session-only?All reactions