Deng Liu and dengliu
cbae278355
feat(markdown): highlight search and selected word occurrences in preview ( #2413 )
...
⌘F in a Markdown file only decorated matches in the editor, so the rendered preview (Split and Preview Only) showed none, and selecting a word in the preview didn't highlight its other occurrences. The Markdown viewer now publishes the active Find query and current match, and the preview draws matches, the current match and selected-word occurrences with the CSS Custom Highlight API in the editor scheme's colours, scrolling the current match into view; a selection in the preview seeds Find, and closing Find in Preview Only returns focus to the preview. Matches are indexed once per render, not rescanned per keystroke.
Co-authored-by: dengliu <5108773+dengliu@users.noreply.github.com >
2026-11-10 04:52:13 +08:00
..
2026-11-09 09:55:17 +08:00
2026-11-10 01:19:12 +08:00
2026-11-10 01:46:12 +08:00
2026-11-08 06:57:09 +08:00
2026-11-01 11:31:53 +08:00
2026-11-07 11:13:09 +08:00
2026-11-09 19:23:05 +08:00
2026-11-09 01:15:23 +08:00
2026-11-04 12:21:03 +08:00
2026-11-10 03:01:00 +08:00
2026-11-08 20:36:07 +08:00
2026-11-06 14:14:44 +08:00
2026-11-06 14:14:44 +08:00
2026-11-08 16:16:02 +08:00
2026-10-30 19:25:41 +08:00
2026-11-06 12:23:39 +08:00
2026-11-06 12:23:39 +08:00
2026-11-06 12:23:39 +08:00
2026-11-03 23:39:26 +08:00
2026-11-02 23:41:21 +08:00
2026-11-10 03:25:53 +08:00
2026-11-09 15:20:49 +08:00
2026-11-08 16:15:05 +08:00
2026-11-04 22:52:48 +08:00
2026-11-04 12:40:45 +08:00
2026-11-10 03:25:21 +08:00
2026-11-10 03:23:27 +08:00
2026-11-10 03:00:15 +08:00
2026-11-09 17:03:21 +08:00
2026-11-10 04:52:13 +08:00
2026-11-10 03:02:24 +08:00
2026-11-04 22:52:48 +08:00
2026-10-30 15:09:55 +08:00
2026-11-07 10:37:24 +08:00
2026-11-07 00:26:42 +08:00
2026-11-10 03:48:31 +08:00
2026-11-08 22:28:20 +08:00
2026-11-08 22:28:20 +08:00
2026-11-08 22:28:20 +08:00
2026-11-04 22:11:38 +08:00
2026-11-08 21:52:18 +08:00
2026-11-08 21:52:18 +08:00
2026-11-09 01:05:45 +08:00
2026-11-05 12:59:38 +08:00
2026-11-08 20:53:51 +08:00
2026-11-08 21:56:26 +08:00
2026-11-08 21:56:26 +08:00
2026-11-08 21:56:26 +08:00
2026-11-05 11:23:39 +08:00
2026-11-10 03:23:27 +08:00
2026-11-07 10:36:15 +08:00
2026-11-04 22:52:48 +08:00
2026-11-06 09:57:03 +08:00
2026-11-03 20:31:57 +08:00
2026-11-05 12:19:47 +08:00
2026-11-09 20:22:12 +08:00
2026-11-08 08:38:42 +08:00
2026-11-08 03:18:44 +08:00
2026-11-08 03:18:44 +08:00
2026-11-08 03:18:44 +08:00
2026-11-07 22:59:21 +08:00
2026-11-08 02:37:26 +08:00
2026-11-08 03:12:01 +08:00
2026-11-07 22:35:36 +08:00
2026-11-08 02:04:10 +08:00
2026-11-08 16:17:47 +08:00
2026-11-08 21:28:06 +08:00
2026-11-05 23:38:03 +08:00
2026-11-05 21:53:22 +08:00
2026-11-05 23:38:03 +08:00
2026-11-08 04:48:14 +08:00
2026-11-10 04:27:36 +08:00
2026-11-10 03:46:22 +08:00
2026-11-08 01:13:13 +08:00
2026-11-08 16:15:16 +08:00
2026-11-08 21:27:12 +08:00
2026-11-08 21:27:12 +08:00
2026-11-08 21:27:12 +08:00
2026-10-31 01:28:41 +08:00
2026-11-09 19:43:48 +08:00
2026-11-10 03:46:22 +08:00
2026-11-08 16:15:20 +08:00
2026-11-08 16:15:09 +08:00
2026-11-08 16:16:06 +08:00
2026-11-08 22:33:22 +08:00
2026-11-05 21:30:14 +08:00
2026-11-10 02:27:14 +08:00
2026-11-05 23:31:14 +08:00
2026-11-09 01:58:13 +08:00
2026-10-31 05:20:39 +08:00
2026-10-31 05:20:39 +08:00
2026-10-31 05:20:39 +08:00
2026-10-22 18:55:10 +08:00
2026-11-10 00:16:38 +08:00
2026-11-02 20:09:27 +08:00
2026-11-04 09:39:32 +08:00