-
-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] tab min width #5035
Open
matthewberryman
wants to merge
6
commits into
wez:main
Choose a base branch
from
matthewberryman:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[feature] tab min width #5035
Conversation
This file contains 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
I also really need this feature. plz |
mjs
reviewed
Aug 4, 2024
Defaults to 5 glyphs in width. | ||
|
||
```lua | ||
config.tab_max_width = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be tab_min_width
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks! Fixed in cb36903
Is this blocked by something? |
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.
I find that after my stroke I am a bit lacking in fine motor coordination, so in both the fancy and retro tab modes the minimum tab width as is a bit small, and so am often closing tabs by accident (when no process is running, anyway) and have difficulty navigating between tabs.
This change adds a minimum tab width to both tab modes (which defaults to the previous hardcoded minimum for retro mode).
Being a bit new to rust, I haven't written any tests, but this seems to be a thing which is possibly hard to test, and
tab_max_width
seems to be untested (at least I did a bit of a search for tests usingtab_max_width
and couldn't find any, though happy to work on tests if someone can give me a bit of a pointer to how to go about it.