fix: preserve LESS options in enter pager - #551
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Enter pager now uses explicit ChangesPager configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change preserves user-defined LESS options while retaining the pager's required behavior, with regression coverage and documentation updates; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pass the required color and stay-open flags directly to less so forgit no longer replaces users' LESS environment options. Add regression coverage and document the default behavior.
7673299 to
e097335
Compare
Check list
Description
Preserve user-defined
LESSoptions when opening the full-screen Enter pager. Like Git, forgit now honors an existingLESSvalue rather than replacing it; the required color and stay-open behavior is expressed through command-line options.Add regression coverage for inherited
LESSoptions and document the defaultFORGIT_ENTER_PAGERbehavior.Fixes #538.
Type of change
Test environment
Additional verification:
lib/bashunit tests(74 tests, 123 assertions), shfmt, Bash syntax check, rumdl, and ShellCheck 0.11.0 with the repository's pre-existing SC2218 findings excluded.Summary by CodeRabbit
New Features
FORGIT_ENTER_PAGERconfiguration for customizing the pager used when entering interactive views.LESSsettings while preventing automatic exit behavior.Documentation
Tests