Quick Pane Jumping

50 views
Skip to first unread message

Neeraj Badlani

unread,
Oct 18, 2019, 12:48:50 PM10/18/19
to tmux-...@googlegroups.com
Hi All , 
Is there a way to quickly jump panes which are not adjacent . 

I can do this for windows , since i just provide prefix key + window number  .

Can i do something similar for panes ? May be prefix key + [a-z] , which would also mean 
that we can have a pane identifier someplace tucked in some corner , that would be great . 

PS : I dont want to move panes and make MRU panes adjacent , because its MRU lets say for couple of hours while m focussing on those panes for work . Again after couple of hours some other set of panes becomes MRU . So i want to avoid this cycle . 
Thnx 

Nicholas Marriott

unread,
Oct 18, 2019, 12:53:28 PM10/18/19
to Neeraj Badlani, tmux-users
C-b q 1 or 2 and so on.

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CAGECCqA2rN2PJ94MkwKD%2B0PN34A3UOkyRdep5f0qkM3aMdtp1g%40mail.gmail.com.

Neeraj Badlani

unread,
Oct 18, 2019, 1:09:55 PM10/18/19
to Nicholas Marriott, tmux-users
THnx Nicholas , this is what i use as of now . But I was hoping to avoid , typing q again and again . 

Nicholas Marriott

unread,
Oct 18, 2019, 1:11:52 PM10/18/19
to Neeraj Badlani, tmux-users
You can bind select-pane to whatever keys you want. If you want the pane index to be displayed all the time you could turn on pane status lines and put it in there.

Neeraj Badlani

unread,
Oct 18, 2019, 1:16:47 PM10/18/19
to Nicholas Marriott, tmux-users
Cool ! . That sounds doable . Maybe i can add prefix+Fn Keys to move around pane . 
Can you please point me to configs for pane status line . Quick max search dint show me anything  / I missed . 

Thnx 

Nicholas Marriott

unread,
Oct 18, 2019, 1:17:40 PM10/18/19
to Neeraj Badlani, tmux-users
pane-border-status and pane-border-format

Neeraj Badlani

unread,
Oct 18, 2019, 1:46:31 PM10/18/19
to Nicholas Marriott, tmux-users
Cool . Thanks a lot Nicholas , I was able to configure what i needed with help of these 2 and some more options . 

Neeraj Badlani

unread,
Oct 18, 2019, 2:02:37 PM10/18/19
to Nicholas Marriott, tmux-users
Just 1 little nitpick . Is there a way to have empty string for pane title by default ? 

tmux set -g pane-border-format '[#{pane_index}] [#{pane_title}]'
Because eventually I want to set pane title but it wont appear until I have added pane_title to pane forder format . 
Thnx 

Nicholas Marriott

unread,
Oct 18, 2019, 2:07:31 PM10/18/19
to Neeraj Badlani, tmux-users
You could perhaps set it using selectp -T '' in the window-layout-changed
hook or put something like [ -n "$TMUX" ] && printf '\033]2;\007' in
your shell profile.


On Fri, Oct 18, 2019 at 11:02:25AM -0700, Neeraj Badlani wrote:
> Just 1 little nitpick . Is there a way to have emptyA string for pane
> title by default ?A
> tmux set -g pane-border-format '[#{pane_index}] [#{pane_title}]'
> Because eventually I want to set pane title but it wont appear until I
> have added pane_title to pane forder format .A
> ThnxA
> On Fri, Oct 18, 2019 at 10:46 AM Neeraj Badlani <neeraj...@gmail.com>
> wrote:
>
> Cool . Thanks a lot Nicholas , I was able to configure what i needed
> with help of these 2 and some more options .A
> On Fri, Oct 18, 2019 at 10:17 AM Nicholas Marriott
> <nicholas...@gmail.com> wrote:
>
> pane-border-status and pane-border-format
>
> On Fri, 18 Oct 2019, 18:16 Neeraj Badlani, <neeraj...@gmail.com>
> wrote:
>
> Cool ! . That sounds doable . Maybe i can add prefix+Fn Keys to move
> around pane .A
> Can you please point me to configs for pane status line . Quick max
> search dint show me anythingA / I missed .A
> ThnxA
> On Fri, Oct 18, 2019 at 10:11 AM Nicholas Marriott
> <nicholas...@gmail.com> wrote:
>
> You can bind select-pane to whatever keys you want. If you want
> the pane index to be displayed all the time you could turn on pane
> status lines and put it in there.
>
> On Fri, 18 Oct 2019, 18:09 Neeraj Badlani,
> <neeraj...@gmail.com> wrote:
>
> THnx Nicholas , this is what i use as of now . But I was hoping
> to avoid , typing q again and again .A
> On Fri, Oct 18, 2019 at 9:53 AM Nicholas Marriott
> <nicholas...@gmail.com> wrote:
>
> C-b q 1 or 2 and so on.
>
> On Fri, 18 Oct 2019, 17:48 Neeraj Badlani,
> <neeraj...@gmail.com> wrote:
>
> Hi All ,A
> Is there a way to quickly jump panes which are not adjacent
> .A
> I can do this for windows , since i just provide prefix
> keyA + window numberA .
> Can i do somethingA similar for panes ? May be prefix keyA +
> [a-z] , which would also meanA
> that we can have a pane identifier someplace tucked in some
> corner , that would be great .A
> PS : I dont want to move panes and make MRU panes
> adjacentA , because its MRU lets say for couple of hours
> while m focussing on those panes for work . Again after
> couple of hours some other set of panes becomes MRU . So i
> want to avoid this cycle .A
> ThnxA

Neeraj Badlani

unread,
Oct 18, 2019, 3:09:37 PM10/18/19
to Nicholas Marriott, tmux-users
THanks Nicholas , its not really a big issue , but if we can have native rename-pane command just like rename-window , that would be great . 
Let me know if this is doable and you want me to open feature request for this . 

PS : THnx for all the info and quick reply , m able to set pane status lines 

Thnx 

Nicholas Marriott

unread,
Oct 18, 2019, 3:21:15 PM10/18/19
to Neeraj Badlani, tmux-users
Panes don't have names, they have titles and that's what select-pane -T is for.

Neeraj Badlani

unread,
Oct 18, 2019, 3:25:02 PM10/18/19
to Nicholas Marriott, tmux-users
Sorry Thats what I meant , retitle-pane 

Steffen Nurpmeso

unread,
Oct 18, 2019, 4:12:38 PM10/18/19
to tmux-users, Neeraj Badlani, Nicholas Marriott
Neeraj Badlani wrote in <CAGECCqBJjQRu3Y31GoB13FG9ebqJT7yeuq8KaWZbYuc8gn\
Ji...@mail.gmail.com>:
|On Fri, Oct 18, 2019 at 12:21 PM Nicholas Marriott <[1]nicholas.marriott\
|@gmail.com[/1]> wrote:
|
| [1] mailto:nicholas...@gmail.com
|
||Panes don't have names, they have titles and that's what select-pane \
||-T is for.

|Sorry Thats what I meant , retitle-pane 

Off thread, but here i want to say on this list what i have said
elsewhere about windows and panes, that i do not understand. The
nice thing on windows is that they have an entry in the title
line, for example here there is

0:mail* 1:edit 2:accu 3:doc 4:tmp- 5:vms 6:irc

and i have shortcuts to get there, and i can get to that neat
window overview tree with one shortcut too. I see from a glance
where i am.

What i really would like to have would be some kind of split-frame
that splits the layout so that multiple windows share the frame,
rather than split-window that splits a window into panes. I.e.,
a split on top level. For example, so that edit and doc are
visible in one go, or edit and irc (now on IRC, since a few
months!!).

That is how i worked for many years with rxvt-unicode and other
direct X terminals, as well as with normal ttys on framebuffer
console, just top-level switches. I do not use panes, i find that
too hard to use, i do not really understand them. (Which very
likely is the problem.)

Ciao,

--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)

Neeraj Badlani

unread,
Oct 19, 2019, 7:43:12 AM10/19/19
to Steffen Nurpmeso, tmux-users, Nicholas Marriott
Hi Steffen , That'd be quite useful , but I dont have that workflow quite often in which I'd want two windows to be on same frame .
The only time i run into this , when my code's open in different window and my builds in different window , and  build fails and i have to go back and forth between build logs and code windows to fix . 
But as of now its not too inconvenient for me , since jumping last window is quick shortcut and build fix doesnt require lot of brain space for them to be in same frame . 
I am guessing , this is prob what you meant . 

But i can def see value in your ask . Maybe you can submit formal PR for this , and see if more people would want something similar . 

Thnx 

Steffen Nurpmeso

unread,
Oct 19, 2019, 4:59:34 PM10/19/19
to Neeraj Badlani, tmux-users, Nicholas Marriott

Neeraj Badlani

unread,
Oct 19, 2019, 8:12:33 PM10/19/19
to Steffen Nurpmeso, tmux-users, Nicholas Marriott
Got it . Same for me . All my "utilities" lie in 1 window , which I link in multiple sessions . But you'd like panes to be linked to multiple windows . 
Maybe Nicholas can comment , if thats in the works . Thnx 

On Sat, Oct 19, 2019 at 1:59 PM Steffen Nurpmeso <ste...@sdaoden.eu> wrote:
Hello Neeraj.

Neeraj Badlani wrote in <CAGECCqB70HgyR3=JJfRtSDjBph_YCagEUk2cgPxhpcTo1g\
cu...@mail.gmail.com>:

 |Hi Steffen , That'd be quite useful , but I dont have that workflow \
 |quite often in which I'd want two windows to be on same frame .

Sorry for hijacking this thread of yours.


 |The only time i run into this , when my code's open in different window \
 |and my builds in different window , and  build fails and i have to \
 |go back and forth between build logs and code windows to fix . 
 |
 |But as of now its not too inconvenient for me , since jumping last \
 |window is quick shortcut and build fix doesnt require lot of brain \
 |space for them to be in same frame . 

That is how it goes here, too.


 |I am guessing , this is prob what you meant . 

That would also be a use case, yes.  It is just that tmux is
de-facto my "window manager" now, in my one (the non-web-browser)
account.  So i have multiple windows i work in, but that wide
screen would take 2 1/2 80 column windows, so the space is unused.
Then -- often -- it would be nice to place the IRC window in that
unused space.  Or the documentation window, etc.  So that you can
switch windows but still have that IRC window in sight all the
time.


 |But i can def see value in your ask . Maybe you can submit formal PR \
 |for this , and see if more people would want something similar . 

Well i have no github account.  I just had the impression that
what i have said multiple times in the public about tmux could fit
a bit into this thread of yours, so saying it in this public here
could possibly be the stimulus for something that could land at
a later time.
Reply all
Reply to author
Forward
0 new messages