-
Notifications
You must be signed in to change notification settings - Fork 21
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 navigate next method #3
Add navigate next method #3
Conversation
I will be honest, I never heard about this kind of workflow. Could you please give an example on how you would use this functionality? I have nothing against the idea of the PR, if people find it useful, I will accept it. I just never had the need of using more than up/down/left/right + previous window. |
It's a combination of the Does that help? |
I understand what it does, I just don't see how you would use it in practice. That's why I asked for an example. I will take a look at the PR today. At first glance it looks good. However I want to make a clear distinction between last "current window" (what is currently called "previous") and the next window by number. If you introduce next as in "next by number", there might be confusion as to what "previous" means. In Tmux man page, "next" and "previous" are used for windows by numbers, while "last" is used for the last (previously current) window. Do you think we should also change this here? I.e. change "previous" to "last".. |
Considering what you've described, changing "previous" by "last" would make more sense I think. |
README.md
Outdated
@@ -39,6 +39,7 @@ The default keybinds are (in tmux): | |||
- `Ctrl + k`: move up | |||
- `Ctrl + l`: move right | |||
- `Ctrl + \`: move to previous pane |
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.
Please change this to: "- Ctrl + \
: move to the last (previously active) pane".
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.
Updated.
README.md
Outdated
@@ -39,6 +39,7 @@ The default keybinds are (in tmux): | |||
- `Ctrl + k`: move up | |||
- `Ctrl + l`: move right | |||
- `Ctrl + \`: move to previous pane | |||
- `Ctrl + Space` move to the next pane |
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.
And this to: "- Ctrl + Space
move to the next pane (by pane number)".
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.
Updated.
For now, I will keep the naming as it is, though I just want to make it clear for the user what each command does. |
Hey, me again.
I have a workflow with neovim and tmux where I would like to just be able to go the next window/pane depending if I'm in neovim or in a tmux pane. I thought other people might be interested in such a workflow.
By default, I set the
Ctrl + Space
key binding as this is what I use.