Skip to content

feat: edit saved annotations from manager - #73

Merged
backnotprop merged 2 commits into
plannotator:mainfrom
graemefolk:edit-saved-annotations
Oct 23, 2026
Merged

backnotprop merged 2 commits into
plannotator:mainfrom
graemefolk:edit-saved-annotations

Conversation

@graemefolk

Copy link
Copy Markdown
Contributor

Closes #68.

You can now press e in the manager to edit a saved comment. Ctrl+S saves and Esc cancels, without changing the selected text or where it came from.

A save from another pane won't be overwritten, and archiving won't lose an edit.

Checked with all 123 Rust tests and the terminal test suite (150 screens).

Let users correct saved feedback without recapturing the selection or
changing its provenance and ordering. Reuse the existing comment editor.

Keep active records when they differ from an archive snapshot, so an
archive action in another pane cannot delete a successfully saved edit.
Reject stale saves and keep their drafts open so two manager panes cannot
silently overwrite each other's feedback.
@backnotprop
backnotprop force-pushed the edit-saved-annotations branch from 86ee727 to 545a247 Compare October 23, 2026 18:27
The manager now reloads saved annotations before it opens the editor, so an
edit never starts from a stale copy. If the annotation was removed in another
pane, it says so and does not open the editor. The clear confirmation now
matches the footer and says D, not Shift+D. Empty-store test asserts use
assert_eq so clippy 1.99 passes.

refs plannotator#68
@backnotprop
backnotprop force-pushed the edit-saved-annotations branch from 545a247 to f5e1367 Compare October 23, 2026 18:30
@backnotprop
backnotprop merged commit 53e3dda into plannotator:main Oct 23, 2026
7 checks passed
@backnotprop

Copy link
Copy Markdown
Contributor

Thanks @graemefolk, merged. Two small tweaks on top: the manager reloads before opening the editor so an edit never starts from a stale copy, and the clear prompt now says "Press D again" to match the footer.

@backnotprop

Copy link
Copy Markdown
Contributor

@graemefolk this is now live in plugin 0.9.3; update the plugin to get e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edit an existing annotation

2 participants