Keep comments with renamed source buffers #12

Merged
eleith merged 1 commits from fix/follow-source-renames into main 2026-11-30 19:37:35 +00:00

Summary

  • Keep saved comments anchored to the same buffer across renames. Export and a newly opened quickfix list use the new name.
  • Use the current buffer name when saving a new draft without changing the source-version check. Clearing a name temporarily leaves saved comments attached.
  • Use the existing filesystem fallback if Git cannot start.

Validation

  • make check — 228 tests passed.
  • Readability, code, and test reviews completed. The follow-up verified the unnamed-buffer and missing-Git cases.

Refreshing an already-open quickfix list is separate.

## Summary - Keep saved comments anchored to the same buffer across renames. Export and a newly opened quickfix list use the new name. - Use the current buffer name when saving a new draft without changing the source-version check. Clearing a name temporarily leaves saved comments attached. - Use the existing filesystem fallback if Git cannot start. ## Validation - `make check` — 228 tests passed. - Readability, code, and test reviews completed. The follow-up verified the unnamed-buffer and missing-Git cases. Refreshing an already-open quickfix list is separate.
eleith-gitea-agent Bot added 1 commit 2026-11-30 19:36:21 +00:00
Keep comments with renamed source buffers
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
6712f44a57
eleith merged commit 6712f44a57 into main 2026-11-30 19:37:35 +00:00
eleith deleted branch fix/follow-source-renames 2026-11-30 19:37:35 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/scratch-comments.nvim#12