Recover edits after a failed operation
Keep the live session while resolving an error. The echo distinguishes an unperformed operation from a published filesystem change whose completion or refresh failed. See Failure recovery for those outcomes.
A save did not publish
- Read the operation and path in the echo. For a missing or inaccessible parent, create/fix the intended directory outside the editor, or choose another existing writable parent with
C-x C-w. - Request a fresh save with
C-x C-sorC-x C-w. Previous canceled path or close requests do not carry authority into this command. - If the destination changed, inspect the external file before answering the new overwrite question.
norC-gretains both the live edits and external data. - Verify
Savedand a clean--status before relying on the save for exit.
A save published but completion is unresolved
- Inspect the reported target on disk. The file may already contain the new bytes; the modified indicator also retains an unresolved-publication warning.
- Resolve the reported synchronization/observation problem and request a new save explicitly. Any changed or unobserved destination needs fresh consent.
- Use
C-gto cancel a required close/exit flow while investigating. A later independent save does not automatically resume the canceled flow.
A tree action failed or removed an open path
- Read whether the echo reports
Created,Renamed,Deletedor a possibly partial deletion. Do not assume that a later refresh error rolled disk back. - Focus the tree with
C-x t fand refresh withC-x t rafter fixing access or path problems. Loaded branches retain a usable selection. - Switch to the retained buffer with
C-x b. A removed visited path keeps its text and history. Save explicitly to recreate its file in an existing parent, or useC-x C-wto preserve it elsewhere.
Input, syntax or geometry interrupted the task
Use C-g to cancel the focused prompt, search or decision. Resize retains text,
history and pending input; enlarge the terminal to restore the normal panes.
Syntax failure leaves editable text and saving available; a later accepted
revision can recover highlighting. C-x u remains the terminal-reportable undo
alternative when a terminal cannot distinguish punctuation Control chords.
Use Focused prompts, File tree and Scope and defaults for the retained-state rules.