Closed mattpolito closed 5 years ago
Tmux has an option to change first window number to say 1
. If a user did that, there's no point we add a binding for window 0.
If tmux show-option -g base-index
is 0
then we can make this binding. If it's something else then we can pass.
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 0
. In fact, due to the position on the keyboard I find 0
easier to press than backtick. Let's leave this PR open for a while and wait for some 👍 or other feedback
@bruno- Sounds good. Thanks for the feedback.
@bruno- with your input I updated the commit to be conditional on base-index
still being 0
.
I would much rather see base-index
and pane-base-index
to be set to 1 (issue #33 which seems to have 8 votes for, 1 against currently). @bruno- have you considered accepting that issue?
@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 1
.
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