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
choose-window sorely missing #2636
Comments
It's not coming back, sorry. You can make concrete suggestion for changes to choose-tree if you like. |
Choose-tree could indeed be great if there were a way to filter out, or opt out from the session line at the top, or give it something other than a digit, so the window indexes below it are no longer off-by-one. For example, it would be great if the list choices 0-9 would always correspond to window indexes 0-9, even if some of those windows aren't currently active. Then any windows indexes 10 or above could be listed with simple lowercase letters. The top session line could be M-a, another session could be M-b, etc. |
We can't use lowercase letters because they are used for commands, that isn't going to change. Not sure about removing the session line, perhaps that is possible. It might be possible to bind keys to windows rather than just to the item on that line. |
how about if choose-tree would prefer to match up 0-9 with window indexes 0-9 as far as possible, and list everything else as M-a etc, even tho M-a might then be at the top, and M-b might be right after window 9? |
Right, that's what I means by binding keys to windows. |
in the below situation, it's very nice to match up 1 with window 1, and great to go ahead and use 2-9 for other windows, as choose-tree is already doing:
|
given this assortment of windows, this choose-tree list would be the most convenient and sensible, making the best possible use of the digits 0-9:
|
I like the existing shortcut scheme, so we need any change to be optional so this can remain the default. Additionally it is likely that people who want to map by We could do it though a format. For example, we could say that if the format evaluates to a number then the line is assigned that key (0 = Or perhaps this is being too complicated. Hardly anyone wants to change this so perhaps we make a few fixed choices ( |
Try this please: tmux-key-format.diff.txt
|
i like it. single digits match single digit indexes. single keystroke for other windows. thank you! |
Applied to OpenBSD now, will be in GitHub later. Thanks! |
This is a better format which only assigns keys to windows in the current session: https://github.com/tmux/tmux/wiki/Recipes#change-shortcut-keys-in-tree-mode |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue description
Ah, the sweet memories, i'm doing a bit of work on centos7, with tmux of same vintage, see how the window indexes all line up nicely! They're not all off-by-one, and the windows beyond 9 can be selected by a single letter!
i know choose-tree is wonderful, but can we perchance please also have choose-window back the way it was?
it's a daily disappointment having to work with this instead:
The text was updated successfully, but these errors were encountered: