Repository navigation
0.10.0 — The preview can open by itself, Go to Heading
The preview can open by itself. Set "auto_open_preview" in MarkdownGlance's settings to "side_by_side", and a Markdown file you open, or switch to for the first time, gets a preview beside it with the cursor left in the file. Set it to "full_screen" and the preview opens in the file's place, in front of it. Each file opens it once, so a preview you close stays closed until you go to another file, and a file you're only browsing in Goto Anything waits until you press Enter. Off by default (ADR 0026). Requested by @flowen in #16. @Akimizussq proposed the setting and worked out what it had to handle, and @tikhomirov made the first attempt in #18.
Go to Heading. Press Ctrl+R (Cmd+R on macOS) in the preview for its headings in a floating list over it. It opens on the section you're reading, filters as you type, and scrolls the preview as you move through it; Enter goes there, and Escape puts the preview back. In the Markdown file the key is still Goto Symbol (ADR 0027).
Fixed:
- A
#headinglink clicked in the preview moves the caret to that heading even when the contents panel has never been open and the file hasn't been edited since its preview opened.
Thank you all.
Checked with the test harness's scenarios on build 4215 (Python 3.14) and build 4200 (Python 3.8): all of them on Linux but math, whose server now draws a picture for any input, and all but math and local SVG on macOS. Opening by itself was tested on Windows by @Akimizussq, in clean profiles on builds 4200 and 4215 — thank you — and checked here on Windows 11 with build 4200 and across a restart with hot_exit on, on Linux. Package Control messages remain limited to the install note.
Requires Sublime Text build 4200 or newer. Install through Package Control; see the README.