You are not logged in.
I'm trying to get panes laid with panes 0 and 1 each occupying the top half and 2 occupying the bottom half, ie:
0 | 1
-----
2but I can't figure out how. I can get
0 | 2
-----
1and I would have thought swap-pane would allow me to swap 1 and 2, but it does absolutely nothing.
I start tmux with a custom config (tmux -2 -f ~/.tmux3h attach) and the relevant part of the config is:
new -n bash
splitw -v -p 50 -t 0
splitw -h -p 50 -t 0
#swapp -D -t 2
#swapp -s 1 -t 2
#swapp -t 1 -s 2
#swapp -U -t 1
selectp -t 0I've tried each one of those swapp lines individually.
Last edited by alphaniner (2014-03-21 21:26:10)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Have you tried 'swapp -D -t 2' ?
Offline
Oops, I mistyped the -U and -D lines, should have been 'swapp -D -t 2' and 'swapp -U -t 1'. I actually tried every conceivable combination, even ones I expected were wrong. None of them does anything, and I never see any errors like I do when I have an invalid command in the conf file.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
This apears to work for me:
new -n bash
splitw -v -p 50 -t 0
select-pane -U
splitw -h -p 50 -t 0swap-pane swaps the pane contents, but does not change the pane numbers.
I'm not sure why you care exactly what the pane numbers are, as long as you know what they are (why do you need the numbers in that particular order?).
Last edited by 2ManyDogs (2014-03-22 23:01:02)
Offline
Thanks, 2MD.
Re: why I care, because I switch panes by cycling fwd/bkwd and having them ordered 'incorrectly' would be confusing. Yeah, I could probably get used to it, but I'd rather not.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks for explaining. I just move left-right, up-down, so I never even really notice what the pane numbers are (I had to look up the keybind for displaying the numbers ;-).
So does that code solve your problem?
Last edited by 2ManyDogs (2014-03-21 20:55:33)
Offline
I just move left-right, up-down
B, A, start?
I couldn't resist.
How are you determining the pane IDs? For me,
0 | 1
------
2
Is easy to accomplish. Initial horizontal split, followed by vertical split of the top pane = http://imgur.com/25znEdg
Cycling panes works as you would expect: select-pane -t :.+ goes 0 to 1 to 2 to 0, select-pane -t :.- goes from 2 to 1 to 0 to 2.
Perhaps I need to reread the thread, maybe I missed something.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Is easy to accomplish. Initial horizontal split, followed by vertical split of the top pane = http://imgur.com/25znEdg
Yes, this works perfectly once tmux is running. But did you try alphaniner's code (from the first post)? The tmux.conf does a vertical split followed by a horizontal split, and the resulting frames are out of (the preferred) order. I had to specifically select the upper pane after the v-split and before the h-split. If you have code that works on startup without this move it would be helpful.
Perhaps I need to reread the thread, maybe I missed something.
Perhaps you did, or I did. ;-) I also think we are using the terms vertical and horizontal differently. For me a vertical split ("splitw -v") splits the window along the vertical axis (into two panes, upper and lower).
Last edited by 2ManyDogs (2014-03-21 21:26:24)
Offline
WorMzy wrote:Is easy to accomplish. Initial horizontal split, followed by vertical split of the top pane = http://imgur.com/25znEdg
Yes, this works perfectly once tmux is running. But did you try alphaniner's code (from the first post)?
I didn't, which might be what I'm missing. I didn't think that pre-set configuration vs. active configuration would be any different though.
However, I just tried it, and the panes are in the same order as my screenshot..
I do use tmux-git though. Perhaps this has been addressed upstream since the last release?
WorMzy wrote:Perhaps I need to reread the thread, maybe I missed something.
Perhaps you did, or I did. ;-) I also think we are using the terms vertical and horizontal differently. For me a vertical split ("splitw -v") splits the window along the vertical axis (into two panes, upper and lower).
Probably. I don't use commands myself, but rather keyboard shortcuts, haha. I say horizontal split to mean drawing a horizontal line across the middle of the active pane.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline