-
Notifications
You must be signed in to change notification settings - Fork 94
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
Easier navigation in zero based windowing #45
Easier navigation in zero based windowing #45
Conversation
Tmux has an option to change first window number to say If I like this idea, but the only thing I'm unsure is how much "universal" or generally useful for the users is? I for example don't have problems typing |
@bruno- Sounds good. Thanks for the feedback. |
62ca1b0
to
4c3389d
Compare
@bruno- with your input I updated the commit to be conditional on |
sensible.tmux
Outdated
@@ -151,6 +151,13 @@ main() { | |||
tmux bind-key C-n next-window | |||
fi | |||
|
|||
# Easier navigation in zero based windowing | |||
if key_binding_not_set "`"; then | |||
if option_value_not_changed "base-index" "0"; then |
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.
Can't we have these two conditions on a single line? There's the example on line 97.
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
9cc4eb6
to
5a99de6
Compare
5a99de6
to
176cb0d
Compare
I would much rather see @mattpolito I'm assuming backtick on your keyboard layout is left from "1". On finnish keyboard layout backtick is on the left side of backspace, which makes this binding quite useless. Considering differences in keyboard layout, I don't see this as a universal proposal. |
@sorsasampo just left a response in #33. I also agree on the backtick position argument: I also use keyboard layout where backtick is not left of key |
Thanks @sorsasampo & @bruno- for the feedback... it appears this is not universally appealing so I will close the PR. |
In the tmux windowing env we can select windows using prefix-NUM. However with zero being the first window but on the opposite side of the keyboard, it can be counter-intuitive.
I propose that the backtick '`' be used for window in the zero position.
prefix-` -> window 0
prefix-1 -> window 1
prefix-2 -> window 2
etc