Previews
A preview shows a file rendered, the way it is meant to be read: Markdown, Mermaid diagrams, CSV grids, spreadsheets, images, PDFs, SVG and HTML. Put one next to the editor and it follows your typing, which beats flicking to a browser every thirty seconds. Preview settings are in the Previews reference.
Open a preview of a file
An editor's status bar › Open Preview, a file's menu › Open Preview, or drop a file on a preview
A preview opens in a panel of its own, titled with the file's name and the preview type. You can open one from the editor, from the File Explorer, or by dropping a file on a preview you already have.
- Click Open Preview on the editor's status bar.
- Or right-click the file in the File Explorer and choose Open Preview.
- Or drag a file onto a preview panel.
If the file already has a preview, Open Preview takes you to it rather than opening a second.
Choose what opens when you open a file
Cog menu › Settings › Editor › Previews
Each file type has a default open action: the editor, a throng preview or your system's own program. A click in the File Explorer or a followed link uses it.
- Open Previews in Settings.
- For each file type, choose the editor, a throng preview or your system's own program.
- Choose whether opening another file reuses the preview you already have.
Keep a file and its preview in step
A preview beside its editor
A preview beside its editor redraws as you type and scrolls with the editor, so the part you are writing stays in view in both.
- Open the file in an editor, and its preview in a panel beside it.
- Type: the preview follows, and scrolls with you.
- Click Open in Editor in the preview to jump back to the source.
Move around a preview
A preview
A preview keeps a Back and Forward history like a browser, and offers a Go to list for its content: headings in Markdown, pages in a PDF, rows in a CSV.
- Press Ctrl+G for Go to Heading (Go to Page in a PDF, Go to Row in a CSV). The box dims this preview until you choose, or close it with Esc, its ✕ or a click on the dimmed preview.
- Press Alt+Left and Alt+Right to step back and forward.
- Drag with the middle mouse button to scroll. Zoom as you would any panel.
- Point at a link. Its popup says how to follow it, and whether it stays in throng (internal) or leaves it (external). Hold Ctrl (macOS: Cmd) and the popup reads Visit followed by the whole address.
- Read where a link goes in the small box at the bottom-left of the panel, just above the status bar, or near the bottom edge when the bar is hidden. It fades in while you point at the link. Tab to a link and the box stays until you move focus off it.
Copy from a preview
A preview › right-click
You can paste rendered content into another program, keeping its formatting, or as plain text. Pictures and diagrams copy as images.
- Select what you want, then right-click.
- Choose Copy as › Rich Text or Plain Text. The one marked Ctrl+C is the format the copy format setting picks, and the one Ctrl+C copies in.
- For pictures and diagrams, choose Copy Image.
- To copy the file's path, open the panel header's menu and choose Copy Path.
Print a preview or save it as a PDF
A preview › Ctrl+P
Print Preview shows each page as it will print, with the printer, paper and layout controls beside it. The same window saves a PDF when you want to send the document to someone.
- Press Ctrl+P. Print Preview opens.
- Choose the printer, paper, orientation, margins, fit, header and footer.
- Check each page in the preview.
- Click Print, or Save as PDF….
When a preview cannot show a file
The banner across the preview
A preview that cannot show a file puts a banner across itself naming the reason, such as a file over the size limit or one it cannot read.
- Read the banner: it gives the reason.
- Fix the cause, then click Refresh.
Size limits, and turning a preview type off altogether, are Previews settings.
