Skip to content

feat: bookmark a specific line or selection, not just a whole file - #90

Merged
Wikid82 merged 1 commit into
developmentfrom
feature/42-line-selection-bookmarks
Sep 15, 2026
Merged

Wikid82 merged 1 commit into
developmentfrom
feature/42-line-selection-bookmarks

Conversation

@Wikid82

@Wikid82 Wikid82 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a Bookmark Line/Selection command (editor context menu + command palette) that bookmarks the active editor's current line, or the full range for a multi-line selection, instead of only the whole file.
  • Opening such a bookmark reveals and re-selects the saved line range.
  • The same file can now be bookmarked at multiple distinct line ranges — dedup now keys on uri + lineStart + lineEnd instead of uri alone, so whole-file and line-scoped bookmarks for the same file can coexist.

Closes #42.

Test plan

  • npm run lint (types + eslint)
  • npm run format:check
  • npm run test (170 unit tests, 100% line coverage on extension.ts)
  • npm run build
  • npm run test:e2e (9 passing, including a new fixture-backed test covering add → tree display → open restores selection)

Adds a new "Bookmark Line/Selection" command (editor context menu +
command palette) that captures the active editor's current line, or
full selection when one spans multiple lines, alongside a bookmark.
Opening such a bookmark reveals and re-selects that range. Whole-file
bookmarks are unaffected, and the same file can now be bookmarked at
multiple distinct line ranges (dedup now keys on uri + line range
instead of uri alone).

Closes #42.
@Wikid82
Wikid82 merged commit 7a5fe9e into development Sep 15, 2026
7 checks passed
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
extension.ts 88.00% 0 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

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.

2 participants