How do I open newTab and splitPane same as current directory? #7904

Closed
opened 2026-01-31 01:15:31 +00:00 by claunia · 2 comments
Owner

Originally created by @harryqt on GitHub (May 3, 2020).

...

"keybindings": [
    {
        "command": "newTab",
        "keys": ["ctrl+t"]
    },
    {
        "keys": ["ctrl+p"],
        "command": {
            "action": "splitPane",
            "split": "vertical",
            "splitMode": "duplicate"
        }
    }
]

For example: Let's say I'm currently on C:\Users\HARRY\Desktop when I press ctrl+t or ctrl+p it changes the directory to C:\Users\HARRY I would like to open new tab or pane same as the directory the command was invoked (C:\Users\HARRY\Desktop)

I know this settings can be configured using startingDirectory parameter but how do I configure it to open same directory the command was invoked?

Originally created by @harryqt on GitHub (May 3, 2020). ``` ... "keybindings": [ { "command": "newTab", "keys": ["ctrl+t"] }, { "keys": ["ctrl+p"], "command": { "action": "splitPane", "split": "vertical", "splitMode": "duplicate" } } ] ``` For example: Let's say I'm currently on `C:\Users\HARRY\Desktop` when I press `ctrl+t` or `ctrl+p` it changes the directory to `C:\Users\HARRY` I would like to open new tab or pane same as the directory the command was invoked (`C:\Users\HARRY\Desktop`) I know this settings can be configured using `startingDirectory` parameter but how do I configure it to open same directory the command was invoked?
claunia added the Resolution-Duplicate label 2026-01-31 01:15:31 +00:00
Author
Owner

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

Thanks for the request! Right now this isn't possible. /dup #3158

@DHowett-MSFT commented on GitHub (May 3, 2020): Thanks for the request! Right now this isn't possible. /dup #3158
Author
Owner

@ghost commented on GitHub (May 3, 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 3, 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#7904