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

Open
opened 2026-01-31 01:15:28 +00:00 by claunia · 0 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:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7901