[Feature] New Profile -> with Split view? #7380

Closed
opened 2026-01-31 01:02:25 +00:00 by claunia · 7 comments
Owner

Originally created by @martinandersen3d on GitHub (Apr 12, 2020).

Description of the new feature/enhancement

I would like some way to define a Profile, where splitscreen is allready defined. How can we do this best?

Or is it allready in there?

Proposed technical implementation details (optional)

image

What would the syntax be? :)

Originally created by @martinandersen3d on GitHub (Apr 12, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement I would like some way to define a Profile, where splitscreen is allready defined. How can we do this best? Or is it allready in there? <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. --> ![image](https://user-images.githubusercontent.com/19984581/79071673-49714c80-7cdd-11ea-8581-ed5ea68c17dd.png) What would the syntax be? :)
Author
Owner

@zadjii-msft commented on GitHub (Apr 13, 2020):

Out of curiosity, when you open a new tab with this profile, what do you expect to happen? Does it automatically create two panes, split vertically, with this profile? Does it create two panes, one with the default profile, and another with the given profile?

It seems to me like you're looking for the ability to open a pane with a specific profile. I personally use the following keybindings to great success:

        { "keys": [ "ctrl+alt+t" ], "command": { "action": "splitPane", "split":"auto", "splitMode": "duplicate" }  },
        { "keys": [ "ctrl+alt+z" ], "command": { "action": "splitPane", "profile": "Ubuntu 18.04", "split":"auto" } },
  • ctrl+alt+t Opens a new split with the current profile, with either a vertical or horizontal split (whichever gives it the most space)
  • ctrl+alt+z Opens a new split with my "Ubuntu 18.04" profile, with either a vertical or horizontal split (whichever gives it the most space)
@zadjii-msft commented on GitHub (Apr 13, 2020): Out of curiosity, when you open a new tab with this profile, what do you expect to happen? Does it automatically create two panes, split vertically, with this profile? Does it create two panes, one with the default profile, and another with the given profile? It seems to me like you're looking for the ability to open a pane with a specific profile. I personally use the following keybindings to great success: ```json { "keys": [ "ctrl+alt+t" ], "command": { "action": "splitPane", "split":"auto", "splitMode": "duplicate" } }, { "keys": [ "ctrl+alt+z" ], "command": { "action": "splitPane", "profile": "Ubuntu 18.04", "split":"auto" } }, ``` * <kbd>ctrl+alt+t</kbd> Opens a new split with the current profile, with either a vertical or horizontal split (whichever gives it the most space) * <kbd>ctrl+alt+z</kbd> Opens a new split with my "Ubuntu 18.04" profile, with either a vertical or horizontal split (whichever gives it the most space)
Author
Owner

@jdhitsolutions commented on GitHub (Apr 16, 2020):

I was just trying to figure out how to do this. Keybindings are fine, if I can remember what they are. I too would like an ability to define a profile with assigned split sections. Or let me run a WT command line that will open what I want in the existing WT instance.

@jdhitsolutions commented on GitHub (Apr 16, 2020): I was just trying to figure out how to do this. Keybindings are fine, if I can remember what they are. I too would like an ability to define a profile with assigned split sections. Or let me run a WT command line that will open what I want in the existing WT instance.
Author
Owner

@ghost commented on GitHub (Apr 20, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Apr 20, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@jdhitsolutions commented on GitHub (Apr 20, 2020):

I guess I'll speak for the original poster. I guess I'd like to see profile syntax that lets me specify an array of split panels including whether it is horizontal or vertical. It other words, the profile setting becomes an array of sub-panels. Maybe something like this:

   "profiles": [
        {
                "tabTitle": "PowerShell Panels",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "panels": [
                    {
                    "acrylicOpacity": 0.5,
                    "background": "#012456",
                    "closeOnExit": true,
                    "colorScheme": "Campbell",
                    "commandline": "powershell.exe -nologo",
                    "split": "horizontal",
                    "cursorColor": "#FFFFFF",
                    "cursorShape": "bar",
                    "fontFace": "Consolas",
                    "fontSize": 14,
                    "historySize": 9001,
                    "icon": "ms-appx:/// ProfileIcon s/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                    "name": "Windows PowerShell",
                    "padding": "0, 0, 0, 0",
                    "snapOnInput": true,
                    "startingDirectory": "%USERPROFILE%",
                    "useAcrylic": false
                },
                {
                    "acrylicOpacity": 0.5,
                    "background": "#012456",
                    "closeOnExit": true,
                    "colorScheme": "Campbell",
                    "commandline": "pwsh -nologo",
                    "split": "auto",
                    "cursorColor": "#FFFFFF",
                    "cursorShape": "bar",
                    "fontFace": "Consolas",
                    "fontSize": 14,
                    "historySize": 9001,
                    "name": "Windows PowerShell",
                    "padding": "0, 0, 0, 0",
                    "snapOnInput": true,
                    "startingDirectory": "%USERPROFILE%",
                    "useAcrylic": false
                }
                ]
        }
    ]

I slapped a few things together for the mock up. If I have to go to the effort of adding in the keyboard shortcuts, I might as well be able to edit settings to define a custom layout.

@jdhitsolutions commented on GitHub (Apr 20, 2020): I guess I'll speak for the original poster. I guess I'd like to see profile syntax that lets me specify an array of split panels including whether it is horizontal or vertical. It other words, the profile setting becomes an array of sub-panels. Maybe something like this: ```json "profiles": [ { "tabTitle": "PowerShell Panels", "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "panels": [ { "acrylicOpacity": 0.5, "background": "#012456", "closeOnExit": true, "colorScheme": "Campbell", "commandline": "powershell.exe -nologo", "split": "horizontal", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 14, "historySize": 9001, "icon": "ms-appx:/// ProfileIcon s/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", "name": "Windows PowerShell", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": false }, { "acrylicOpacity": 0.5, "background": "#012456", "closeOnExit": true, "colorScheme": "Campbell", "commandline": "pwsh -nologo", "split": "auto", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontFace": "Consolas", "fontSize": 14, "historySize": 9001, "name": "Windows PowerShell", "padding": "0, 0, 0, 0", "snapOnInput": true, "startingDirectory": "%USERPROFILE%", "useAcrylic": false } ] } ] ``` I slapped a few things together for the mock up. If I have to go to the effort of adding in the keyboard shortcuts, I might as well be able to edit settings to define a custom layout.
Author
Owner

@martinandersen3d commented on GitHub (Apr 20, 2020):

Yes I agree. It needs to be customisable to every individual persons needs 😉

@martinandersen3d commented on GitHub (Apr 20, 2020): Yes I agree. It needs to be customisable to every individual persons needs 😉
Author
Owner

@DHowett-MSFT commented on GitHub (May 1, 2020):

So, it turns out this is called out from #4632, the commandline scenario!

Add support for a profile to launch multiple panes using wt commands
Add support for running a set of wt commands on startup

I think the "ideal" way forward is to slowly deprecate (never kill!) defaultProfile and replace it with startupCommands or something similar, to let you specify "on startup, or on a profile launch, do new-tab;split-pane;split-pane;focus-tab -1"

I'm gonna mark this one, for now, as a /dup of #4632. Further discussion to follow -- let's get on that megathread and tease out some details.

@DHowett-MSFT commented on GitHub (May 1, 2020): So, it turns out this is called out from #4632, the commandline scenario! > Add support for a profile to launch multiple panes using wt commands > Add support for running a set of wt commands on startup I think the "ideal" way forward is to slowly deprecate (never kill!) `defaultProfile` and replace it with `startupCommands` or something similar, to let you specify "on startup, or on a profile launch, do `new-tab;split-pane;split-pane;focus-tab -1`" I'm gonna mark this one, for now, as a /dup of #4632. Further discussion to follow -- let's get on that megathread and tease out some details.
Author
Owner

@ghost commented on GitHub (May 1, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 1, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7380