Skip to content

feat(config): add default diff layout - #424

Merged
barrettruth merged 1 commit into
mainfrom
feat/default-diff-layout
Jul 23, 2026
Merged

feat(config): add default diff layout#424
barrettruth merged 1 commit into
mainfrom
feat/default-diff-layout

Conversation

@barrettruth

Copy link
Copy Markdown
Owner

Problem

Current-file :Diff always falls back to the unified layout when no ++layout option is supplied, so users who prefer the paired split or stacked view must repeat the option on every invocation. The configuration has no way to express that preference independently from review, arbitrary-file, Fugitive, or native diff surfaces.

Solution

Add view.default_layout with unified, stacked, and split values while retaining unified as the backward-compatible default. Current-file :Diff uses the configured value only when ++layout is omitted, leaving explicit command options at higher precedence and leaving review, arbitrary-file, Fugitive, and native diff behavior unchanged. The option is validated and documented alongside the existing view settings.

This addresses the default-layout portion of #422.

@barrettruth
barrettruth merged commit 70882fe into main Jul 23, 2026
5 checks passed
@barrettruth
barrettruth deleted the feat/default-diff-layout branch July 23, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant