Skip to content

fix(pager): set COLUMNS env var for pager width detection#930

Merged
max-sixty merged 2 commits intomainfrom
pager-width
Feb 4, 2026
Merged

fix(pager): set COLUMNS env var for pager width detection#930
max-sixty merged 2 commits intomainfrom
pager-width

Conversation

@max-sixty
Copy link
Owner

Summary

Sets the COLUMNS environment variable when spawning the pager pipeline, allowing pagers to detect the preview pane width. Users with delta's side-by-side mode can reference this in their config:

[select]
pager = "delta --side-by-side --width=$COLUMNS"

This is a simpler approach than #925 — instead of auto-injecting --width flags (which differ between pagers), we provide COLUMNS as a building block that users can reference in their config.

Fixes #924

Test plan

  • Unit tests pass
  • Lints pass
  • Manual test with delta side-by-side mode

🤖 Generated with Claude Code

This was written by Claude Code on behalf of @max-sixty

Sets the COLUMNS environment variable when spawning the pager pipeline,
allowing pagers to detect the preview pane width. Users with delta's
side-by-side mode can reference this in their config:

    [select]
    pager = "delta --width=$COLUMNS"

Fixes #924

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit 9616892 into main Feb 4, 2026
20 of 21 checks passed
@max-sixty max-sixty deleted the pager-width branch February 4, 2026 20:46
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.

wt switch interactive picker's diff preview layout incorrectly when using delta

1 participant