Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to set window as active #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gharsnull
Copy link

Just as small QoL feature. In my particular setup I configured one window with 2 splitted terminals and another window with a single terminal. the first one is supposed to be the main and the second one is just a windows that I dont always use.

Baiscally this configuration:

     "restoreTerminals.terminals": [
        {
            "splitTerminals": [
                {
                    "name": "main-1",
                },
                {
                    "name": "main-2",
                }
            ]
        },
        {
            "splitTerminals": [
                {
                    "name": "optional",
                },
            ]
        }
    ]

what I noticed with this setup is that since optional is created after the main window, it is always the one that ends up being displayed after all commands are ran.

One workaround for this is just setting my main terminals after the optionals (but that feels ugly). so I added a new property at window level to have control over that

2024-03-14.13-23-55.mp4

@pavelbinar
Copy link

@Gharsnull That is exactly feature I am looking for 🙌🏻
Hi @EthanSK would you please take a look on this PR. The author provided a video as well as you requested and the code change is quite small and clear 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants