Improve the select_tab switcher with context and [New tab] option #4523
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.
The PR improves the usability of the
select_tab
switcher to provide additional context and functionality. This makes it more useful as a kind of "on-demand" tab bar.Lately I've been using
tab_bar_style hidden
for the simplicity and focus that it provides. In this mode, theselect_tab
command becomes very useful as a way to navigate tabs. Specifically, I use it to:The current
select_tab
implementation works well for the first use case but not the second. Personally, I want the ability to go to theselect_tab
screen and decide what to do next. This PR:I find this gives me a much better jumping off point:
This is definitely a personal viewpoint, so I don't expect this to be merged as-is. I opened a PR because it seemed more illustrative than an issue. I'm happy to help iterate on this if there are ideas about how to improve it.
It's also worth noting that none of this strictly requires a change to kitty and is easily implementable as a kitten. I've done so here:
https://github.com/chriszarate/dotfiles/blob/daf4c3036e91f76e88c0f63f64b7c285e7029e68/kitty/kittens/select_tab.py