feat(layout/#592): layout tabs - part 3 - single tab mode #2032
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.
This adds a "single tab mode" that hides the tab bar and restricts each group to a single tab. The effect of this is that
:q
will always close the split/group even if several buffers have been opened in it.There is one caveat, however. If single tab mode is enabled when there are multiple tabs in a group, the extra tabs won't disappear immediately. Only when another buffer is opened will they be replaced. Any fix I can think of for this would be excessively complex for something that is designed to always be on or off, not toggled mid-session, so I doubt it's really worth it to fix it.
Addresses #592 - This should be the final piece of the puzzle for this, depending on how complete the support needs to be at this point.