rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

Splits behaviour is different in task depending on active tab #1839

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Required information!
OS version: Win 8.1
ConEmu version: ? 141208
Far version (if you are using Far Manager): ? N/A

*Bug description*
It seems like when you crate a task to create a tab with splits (via, for 
example, "-cur_console:s50V), all the splits are relative to whatever console 
you select as the active one with ">" (if it's already been created, I think 
it's relative to the last console created if not).  This prevents creating many 
kinds of splits while keeping a certain console as the active one.  I think a 
better behaviour here would be to have splits always be relative to the last 
console created.

*Steps to reproduction*
1. Create a task with the following (or similar):

powershell.exe -cur_console:d:C:\

>powershell.exe -cur_console:s40H -cur_console:d:D:\

powershell.exe -cur_console:s40V -cur_console:d:E:\

2. Execute task.  It gives a tab with 3 consoles, split roughly like this:

+----------+
|      | D |
|   C  |___|
|______|_E_|

3. Change task to:

>powershell.exe -cur_console:d:C:\

powershell.exe -cur_console:s40H -cur_console:d:D:\

powershell.exe -cur_console:s40V -cur_console:d:E:\

4. Execute task.  It now looks like this:

+----------+ 
|  C   | D |
|______|   |
|__E___|___|

Furthermore, if you open a clean ConEmu with only one tab, then create the 
split in 2 above manually and click into C to give it focus, then go to create 
a new task and click "Active tabs", it will enter the lines from 3, and you'll 
get the behaviour seen in 4.

Apologies for the dodgy ASCII art!

Original issue reported on code.google.com by jimm...@gmail.com on 11 Dec 2014 at 2:53

GoogleCodeExporter commented 9 years ago
Correct. Your tests are working as intended.

"Splitting" always done with "active" split unless you've specified exact split 
with "subswitch" T. It lets ConEmu know what exact split (1-based index in the 
current split group, aka starting Task) to split.

---------
>cmd.exe -cur_console:d:C:\
cmd.exe -cur_console:s40H -cur_console:d:D:\
cmd.exe -cur_console:s2T40V -cur_console:d:E:\
---------

Original comment by ConEmu.Maximus5 on 12 Dec 2014 at 8:45