Skip to content

Support empty comments as highlights - #57

Merged
kylemcd merged 14 commits into
mainfrom
52-request-highlight-text-without-attaching-a-comment
Jul 31, 2026
Merged

Support empty comments as highlights#57
kylemcd merged 14 commits into
mainfrom
52-request-highlight-text-without-attaching-a-comment

Conversation

@kylemcd

@kylemcd kylemcd commented Jul 31, 2026

Copy link
Copy Markdown
Owner

What changed

  • The Allow empty comments setting defaults to off.
  • A blank field saves an empty comment for prose, inline code, and fenced code selections.
  • Each empty comment shows an editable Empty card in the margin and sidebar.
  • Add comment adds text to an exact empty comment or deletes it when the field stays blank.
  • Reading view preserves mapping for repeated inline code, raw HTML, and boundary whitespace.
  • A blank field closes without a change when the setting is off.

Why

Notes

  • No dedicated highlight command exists.
  • Select Empty to add the first comment text.
  • You can also select all highlighted text and run Add comment again.
  • Checks: npm run check with 137 tests, npm run build, and the README STE lint.

@kylemcd kylemcd linked an issue Jul 31, 2026 that may be closed by this pull request
@kylemcd
kylemcd marked this pull request as ready for review July 31, 2026 16:50
@kylemcd
kylemcd merged commit 64b8af9 into main Jul 31, 2026
1 check passed
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.

[Request] Highlight text without attaching a comment

1 participant