-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Add Switch to Next/Prev Split or Tab command #995
Conversation
Hey @vlabo thanks for the PR, It does make sense! Could you update the docs folder regarding it: https://rioterm.com/docs/key-bindings#split-actions |
@@ -570,6 +570,32 @@ impl<T: EventListener + Clone + std::marker::Send + 'static> ContextManager<T> { | |||
self.current_route = self.current().route_id; | |||
} | |||
|
|||
#[inline] | |||
pub fn switch_to_next_split_or_tab(&mut self) { |
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.
everything looks good, could you just add one test for next and prev so we make sure it always work 🙏
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.
Done. Thanks for the patience.
Thank you for updating the docs @vlabo 🙏 |
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.
Nice! thank you @vlabo and thanks for the sponsorship too, I appreciate 🙏
This PR add two new commands
This allows to switch between splits and tabs with single key binding.
I understand if you dont want to merge this and leave it for the plugin system, when available.
Thanks for making this great software.