gilvt

Quick Look preview

Quick Look is a preview overlay on top of the terminal area; the terminal keeps updating in the background. In a git repository it shows changes against HEAD by default: syntax highlighting, word-level diff, and unchanged lines folded. Press ⏎ to pin it as a split pane that refreshes automatically when the file is saved. When a split is too narrow to read comfortably, drag the title bar of the pinned pane (or an editor pane) onto the tab bar and drop it, and it moves into a new tab of its own; pressing T in a pinned preview does the same. In the new tab, Esc or ⌘W closes it and returns you to the original tab.

KeyAction
j k / ↑ ↓, ⌃D ⌃U, g GScroll
n / pNext / previous change hunk
← / →Switch between files of the same batch
UUnified / side-by-side view (chosen automatically by width by default)
DSwitch the comparison base: against HEAD (or a given branch) / file only
RReload (the overlay tells you when the file has changed)
⏎Pin as a split pane
TOpen in a new tab (in a pinned preview: move it from the split to a new tab)
E / ⌘OOpen in the built-in editor (hold ⌥ to flip split / new tab)
⌘⌥OOpen at the current line in an external editor (VS Code when code is available)
Esc / SpaceClose
Text in the preview cannot be selected and copied yet. To copy, press E to open the file in the built-in editor, or cat it in the terminal and use the terminal’s selection. This is on the plan for a later version.