Windows Terminal settings.json - start w/ two panes top, one bottom  


  1. Posts : 2
    Windows 10
       #1

    Windows Terminal settings.json - start w/ two panes top, one bottom


    Windows Version: 10.0.019042.928
    Windows Terminal Version: 1.6.10571.0


    I would like for Windows Terminal to start with two panes on top, and one on the bottom. I can produce this behavior AFTER startup by launching Windows Terminal like this:

    wt sp -H

    Then, once loaded, click in the upper pane and use your assigned shortcut key for a vertical split. Perfect!

    However, when trying to replicate this behavior using the startupActions option, I have trouble. I can create two panes on the bottom and one on the top like this:

    "startupActions": "sp -H `; sp",

    That's pretty close. I noticed that there's a "focus tab" option, so I tried focusing the first tab before splitting, like this:

    "startupActions": "sp -H `; ft -t 0 `; sp",

    However, that has no effect on the layout. I must be missing something simple. Can anyone help me achieve my desired layout at startup without requiring me to manually create the additional tab every time?
      My Computer


  2. Posts : 2
    Windows 10
    Thread Starter
       #2

    dipique said:
    Windows Version: 10.0.019042.928
    Windows Terminal Version: 1.6.10571.0


    I would like for Windows Terminal to start with two panes on top, and one on the bottom.
    I did eventually solve this issue. The key is the "move-focus" command. My ending command looking something like this:

    "startupActions": "sp -H `; move-focus up `; sp ;' move-focus left",

    The final "move-focus left" just places focus on the upper left pane and isn't required to achieve the layout.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:53.
Find Us




Windows 10 Forums