Skip to content

feat(nsgo): move notes and recover them from trash - #271

Merged
bketelsen merged 1 commit into
mainfrom
feat/nsgo-note-management
Nov 24, 2026
Merged

bketelsen merged 1 commit into
mainfrom
feat/nsgo-note-management

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Manage an open note from the NSGo editor on Linux and in Lodge. Rename or move to a vault-relative path, choose whether to rewrite links, and trash after confirmation. Restore a deleted note using its original path or a recent removal observed in the window. The daemon's retained versions support recovery after reopening the app.

The view freezes local editing while it flushes the open document. Deletion names the saved base hash. Restore uses an empty base and the most recent retained non-conflict content so a newly occupied path is protected.

Risk tier

Risk tier: 3. This changes the user-facing deletion and recovery workflow. Every mutation goes through the existing notesd move, delete, or revert RPC.

Verification

  • Passed make check.
  • The NSGo integration test renames a dirty note from a second client, moves it to another folder from the editor, cancels a deletion, trashes with a pending edit, restores the exact text, and rejects restore over a live note.
  • All four Firefox Lodge evidence tests passed against a disposable notesd vault, including a remote rename before autosave, a browser move, trash and restore.

@github-actions github-actions Bot added the level:L3 Skim label Nov 24, 2026
@bketelsen
bketelsen merged commit eb90413 into main Nov 24, 2026
10 checks passed
@bketelsen
bketelsen deleted the feat/nsgo-note-management branch November 24, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants