fix(tmux): restore scrollback — history-limit 0 means zero lines not unlimited - #937
Conversation
history-limit 0 means zero scrollback lines in tmux (not unlimited), which breaks pane scrolling. Use 2000000 for effectively unlimited history. Fixes regression introduced in #934. Entire-Checkpoint: bc5f589eaa45
Entire-Checkpoint: 3099a4733971
|
You do not have enough credits to review this pull request. Please purchase more credits to continue. |
Summary of ChangesHello @shunkakinoki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves a critical regression in tmux configurations that resulted in broken pane scrolling. It rectifies an incorrect interpretation of the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
📝 WalkthroughWalkthroughTwo minor configuration and syntax adjustments across home-manager programs: a fish shell function receives a syntax fix for argument parsing with the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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 |
Mesa DescriptionTL;DRRestored tmux scrollback by setting What changed?
Description generated by Mesa. Update settings |
There was a problem hiding this comment.
Code Review
This pull request addresses a regression in the tmux configuration by correcting the history-limit setting. The previous value of 0 disabled scrollback, and this change sets it to a large number to restore it. I have one suggestion regarding the specific value used to ensure it aligns with the intention described in the pull request. A small, unrelated fix in a fish script is also included and appears correct.
| set -g @extrakto_key 'tab' | ||
|
|
||
| set -g history-limit 0 | ||
| set -g history-limit 2000000 |
There was a problem hiding this comment.
There's a discrepancy between the value for history-limit mentioned in the pull request description (2147483647) and the one implemented in the code (2000000). To align with the stated goal of using the maximum possible scrollback history that tmux supports, I recommend using the value from the description.
set -g history-limit 2147483647
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@home-manager/programs/tmux/tmux.conf`:
- Line 157: The tmux config currently sets "history-limit" to 2000000 but the PR
states the intended effectively-unlimited value is 2147483647; update the
tmux.conf setting for history-limit (the "set -g history-limit" line) to
2147483647 so the implementation matches the PR intent, or alternatively update
the PR description to state 2000000 if you prefer to keep the current value—make
the change to one of those two places to keep intent and code consistent.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
home-manager/programs/fish/functions/_tsh_function.fishhome-manager/programs/tmux/tmux.conf
Use max allowed value instead of 2000000 for effectively unlimited scrollback. tmux has no true "unlimited" option; 0 means zero lines. Entire-Checkpoint: c0a025d46363
Summary
history-limit 0in tmux means zero lines of scrollback (not unlimited), which completely breaks pane scrollingc7ae4d77) which mistakenly assumed0= unlimited2147483647(max int32), the largest value tmux accepts, giving effectively unlimited scrollable historyTest plan
prefix + tprefix + [Fixes regression from #934.
Summary by cubic
Restore tmux scrollback by setting history-limit to 2147483647 (max int) instead of 0, which disabled history. Also fix the fish _tsh_function by adding -- to string replace -r so the '--YYYYMMDD-HHMMSS.txt' regex is parsed correctly.
Written for commit 725ed92. Summary will update on new commits.