On Wed, Mar 07, 2012 at 10:06:23AM +0100, Thorsten wrote: > > > Hi List, > I like the way tmux shows pane numbers (in my case C-o q), but I could > not find a way how to select panes by number (like select window C-o 1). > Did I miss something?
You can use select-pane for that: | select-pane -t :.0 | select-pane -t :.1 | select-pane -t :.2 | ... For now, you can't really bind them directly, but you can with the command-prompt: | bind-key -n C-o command-prompt -p "pane number: " "select-pane -t :.%%" By the way, there is an item in the TODO list: | - bind commands to key sequences? -- make it so ALL keys go through a table, | first an implicit table in which C-b is the only default binding to a | command that says "next key from $othertable" and so on. means -n can | go away as well you could then do something like this: | bind-key o nexttable mypanebindings | bind-key --table mypanebindings 0 select-pane -t :.0 | bind-key --table mypanebindings 1 select-pane -t :.1 | bind-key --table mypanebindings 2 select-pane -t :.2 | bind-key --table mypanebindings 3 select-pane -t :.3 | bind-key --table mypanebindings 4 select-pane -t :.4 | bind-key --table mypanebindings 5 select-pane -t :.5 | bind-key --table mypanebindings 6 select-pane -t :.6 | bind-key --table mypanebindings 7 select-pane -t :.7 | bind-key --table mypanebindings 8 select-pane -t :.8 | bind-key --table mypanebindings 9 select-pane -t :.9 then (assuming ^B as the default prefix key): ^B o 3 would select the third pane in the current window If you've used gnuscreen, the concept is similar to what you could do with 'command -c myclass'. This would really be something great, I'm still trying to understand tmux's code, but if any of you have some advice on where to start to add such a feature, I would be glad to try. hum... Sorry for the [OT]. > > TIA > > -- > cheers, > Thorsten > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users