File Preview

The preview panel is grüt's most context-aware surface. It adapts its display mode based on what you've selected — file content, diffs, issue bodies, PR descriptions, or workflow logs — without any manual switching.

Key Features

  • Syntax highlighting — 100+ languages via Chroma with theme-aware colors
  • Markdown rendering — Issue and PR bodies rendered with full markdown formatting
  • Inline editor — Press e to edit files directly in the preview panel. Ctrl+S saves, Escape discards. Blocks binary and oversized files automatically.
  • Text selection — Click and drag to select text, double-click to select a word, y or Ctrl+C to copy to clipboard
  • Diff mode — Automatically shows diffs when git filter is active or a commit is selected
  • Branch diff mode — Press g to cycle through filter modes: all files → git changed → branch diff (files changed compared to default branch)
  • Image preview — Displays image metadata for binary image files
  • Line numbers — Toggleable line numbers with configurable display

Keybindings

KeyAction
j / kScroll preview up/down
J / KScroll preview by half-page
wToggle word wrap
eEnter inline edit mode
Ctrl+SSave edits (edit mode)
zZoom preview to full screen
y / Ctrl+CCopy selection to clipboard
EscClear selection / exit edit mode

Context Awareness

The preview panel reacts to selections across every other panel. Select a file in the tree and preview shows its content with syntax highlighting. Select an issue and preview renders its markdown body. Select a PR and preview shows the PR description. Press g to toggle git filter mode and preview switches to showing diffs. Enter a commit's file list and preview shows the diff for the selected file. This contextual behavior means you never have to manually switch preview modes — it always shows the most relevant content for your current selection.