I want the split pane to be based on the current directory #19721

Closed
opened 2026-01-31 06:51:46 +00:00 by claunia · 3 comments
Owner

Originally created by @luochongfei on GitHub (Apr 17, 2023).

Description of the new feature/enhancement

In the split pane functionality, I want it to be based on the currently focused working directory, not the base directory that I configure in the settings

Proposed technical implementation details

My settings

Snipaste_2023-04-17_09-55-30

Now I switch to d:/

Snipaste_2023-04-17_09-57-07

Then I used the split pane function (Alt + Shift + minus)

Snipaste_2023-04-17_09-59-31

Originally created by @luochongfei on GitHub (Apr 17, 2023). # Description of the new feature/enhancement In the split pane functionality, I want it to be based on the currently focused working directory, not the base directory that I configure in the settings # Proposed technical implementation details ### My settings ![Snipaste_2023-04-17_09-55-30](https://user-images.githubusercontent.com/4651531/232360522-e979ff10-1b2e-4906-934f-fdc62a8d671f.png) ### Now I switch to d:/ ![Snipaste_2023-04-17_09-57-07](https://user-images.githubusercontent.com/4651531/232360793-9de7d139-3906-466f-8732-35759d1e399d.png) ### Then I used the split pane function (Alt + Shift + minus) ![Snipaste_2023-04-17_09-59-31](https://user-images.githubusercontent.com/4651531/232361136-77b29141-6120-478a-8640-b751275db590.png)
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 06:51:47 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 17, 2023):

Did you read Tutorial: Opening a tab or pane in the same directory in Windows Terminal/?

@zadjii-msft commented on GitHub (Apr 17, 2023): Did you read [Tutorial: Opening a tab or pane in the same directory in Windows Terminal](https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory)/?
Author
Owner

@luochongfei commented on GitHub (Apr 20, 2023):

I got it, and I set it up successfully. Thanks!

@luochongfei commented on GitHub (Apr 20, 2023): I got it, and I set it up successfully. Thanks!
Author
Owner

@luochongfei commented on GitHub (Apr 20, 2023):

Sharing: If you want to use alt+shift+plus to duplicate the pane on the right, you can add the following configuration to actions in Setting.json :

    {
         "command": {
            "action": "splitPane",
            "split": "right",
            "splitMode": "duplicate"
        },
        "keys": "alt+shift+plus"
    }
@luochongfei commented on GitHub (Apr 20, 2023): Sharing: If you want to use `alt+shift+plus` to duplicate the pane on the right, you can add the following configuration to actions in **Setting.json** : ```json { "command": { "action": "splitPane", "split": "right", "splitMode": "duplicate" }, "keys": "alt+shift+plus" } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19721