[Config] Accept a [diff] section with an optional pager - #52
Closed
KCaverly wants to merge 1 commit into
Closed
Conversation
This was referenced Jul 26, 2026
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 19:24
bf58975 to
f171fc0
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 19:24
9df0699 to
af0420d
Compare
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 19:31
f171fc0 to
22ec827
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 19:31
af0420d to
8e2a333
Compare
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 19:34
22ec827 to
28be7c0
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 19:34
8e2a333 to
0310164
Compare
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 19:40
28be7c0 to
e95e5f5
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 19:40
0310164 to
a943147
Compare
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 19:41
e95e5f5 to
a8efe62
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 19:41
a943147 to
a2595d6
Compare
Adds the Diff config: args and exclude, threaded into repo.DiffOptions,
plus a [diff.pager] subtable naming an external formatter each file's
patch is piped through. Omitting the subtable keeps ct's built-in
styling, which stays the default.
A literal {width} in the pager args is replaced with the viewer's current
column count, so a formatter can be sized to the pane.
This is the commit that restores the build: the TUI wiring in ea96527
imports internal/diffpager and reads cfg.Diff.Pager, neither of which
existed in the tree until now.
Covers the config parsing and the chunk-rendering path in the viewer.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ct-stack-id: f57c8815
KCaverly
force-pushed
the
ct/diff_view/ecdcdaf3
branch
from
July 26, 2026 20:27
a8efe62 to
73c72f3
Compare
KCaverly
force-pushed
the
ct/diff_view/f57c8815
branch
from
July 26, 2026 20:27
a2595d6 to
100adca
Compare
Owner
Author
|
Folded into #49. This commit's tests call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Diff config: args and exclude, threaded into repo.DiffOptions,
plus a [diff.pager] subtable naming an external formatter each file's
patch is piped through. Omitting the subtable keeps ct's built-in
styling, which stays the default.
A literal {width} in the pager args is replaced with the viewer's current
column count, so a formatter can be sized to the pane.
This is the commit that restores the build: the TUI wiring in ea96527
imports internal/diffpager and reads cfg.Diff.Pager, neither of which
existed in the tree until now.
Covers the config parsing and the chunk-rendering path in the viewer.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Stack (bottom → top):