Skip to content

fix: persist selected text when enabling highlighter via shortcut#697

Open
clehene wants to merge 1 commit intoobsidianmd:mainfrom
clehene:codex/issue-696-shortcut-persist
Open

fix: persist selected text when enabling highlighter via shortcut#697
clehene wants to merge 1 commit intoobsidianmd:mainfrom
clehene:codex/issue-696-shortcut-persist

Conversation

@clehene
Copy link
Copy Markdown

@clehene clehene commented Feb 17, 2026

What this fixes

The keyboard toggle_highlighter path only toggled highlighter mode and did not save an existing text selection.

Change

When enabling highlighter mode via shortcut, also trigger highlightSelection so current selection is persisted.

Quick test

  1. Select text
  2. Press shortcut
  3. Refresh page
  4. Highlight should remain

@clehene clehene closed this Feb 25, 2026
@clehene clehene deleted the codex/issue-696-shortcut-persist branch February 25, 2026 23:59
@clehene clehene restored the codex/issue-696-shortcut-persist branch February 26, 2026 00:51
@clehene clehene reopened this Feb 26, 2026
@clehene clehene force-pushed the codex/issue-696-shortcut-persist branch from c66b675 to cb28e8d Compare February 26, 2026 01:01
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.

1 participant