Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@g-plane
Copy link
Contributor

@g-plane g-plane commented Aug 9, 2023

This PR introduces a new option max_width in [tab] section for controlling the max width of current directory name in tab. Default value is 0 which means directory name won't be displayed in tab. This matches current behavior.

Here is an example for setting value to 10:

image

The first tab's directory is "raffia" whose length is less than the threshold we set; the second tab's directory is "swc-plugin-react-remove-properties" whose length is greater than the threshold, so it's truncated and only the first 10 chars are displayed. (Should we add ellipses for this case?)

@g-plane g-plane requested a review from sxyazi August 10, 2023 09:33
@g-plane g-plane requested a review from sxyazi August 10, 2023 10:25
@sxyazi
Copy link
Owner

sxyazi commented Aug 10, 2023

Thanks for your work, merged!

@sxyazi sxyazi merged commit f119489 into sxyazi:main Aug 10, 2023
@g-plane g-plane deleted the show-name-in-tab branch August 10, 2023 10:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants