They all work for me. You may need to put '{left-of}' in single quotes
if you are using them from the command prompt.


On Wed, 3 Jun 2020 at 18:33, Carles Ràfols <[email protected]> wrote:
>
> Hello,
>
> I am a new tmux user and I am having a lot of trouble understanding the 
> behaviour of the target-pane "special tokens" after reading the following 
> extract from the manual:
>      target-pane (or src-pane or dst-pane) may be a pane ID or takes a 
> similar form to target-window but with the
>      optional addition of a period followed by a pane index or pane ID, for 
> example: ‘mysession:mywindow.1’.  If the
>      pane index is omitted, the currently active pane in the specified window 
> is used.  The following special tokens
>      are available for the pane index:
>
>      Token                  Meaning
>      {last}            !    The last (previously active) pane
>      {next}            +    The next pane by number
>      {previous}        -    The previous pane by number
>      {top}                  The top pane
>      {bottom}               The bottom pane
>      {left}                 The leftmost pane
>      {right}                The rightmost pane
>      {top-left}             The top-left pane
>      {top-right}            The top-right pane
>      {bottom-left}          The bottom-left pane
>      {bottom-right}         The bottom-right pane
>      {up-of}                The pane above the active pane
>      {down-of}              The pane below the active pane
>      {left-of}              The pane to the left of the active pane
>      {right-of}             The pane to the right of the active pane
>
> It is unclear to me what is the proper syntax to use these tokens. I ran the 
> simplest test I could think of to figure out how it works:
>
> After creating a horizontal split with split-window -h now the right pane is 
> the active pane.
> If I wanted to make the left pane the active pane I could (AFAIK) do that by 
> running any of the following commands:
>
> select-pane -L (works)
> select-pane -t - (works)
> select-pane -t {left} (works)
> select-pane -t {previous} (doesn't work)
> select-pane -t {left-of} (doesn't work)
>
> Why some of these syntax works and some don't? if the "-" token works, 
> shouldn't "{previous}" work as well? I would appreciate if you could clarify 
> how to properly use these tokens.
>
> Thank you in advance.
>
> --
> 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 [email protected].
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/tmux-users/d3d1e045-4aac-4b64-8e10-f3b3da53dd92%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcFkNuckv%2BAjekx80xvk-BRazpozeDzo0x6L57eAZg%3DFNg%40mail.gmail.com.

Reply via email to