Add an option to set the path of splits panes #17387

Closed
opened 2026-01-31 05:40:58 +00:00 by claunia · 1 comment
Owner

Originally created by @moon250 on GitHub (May 2, 2022).

Description of the new feature/enhancement

Add an option to manage the start path of split panes.
This can take the form of an option in the settings.json file. It can take different parameters:

  • default (the start path defined in the profile) (default value)
  • same (the current path of the pane where you split)
  • custom (a path that will be used as the start path in each split pane)

Proposed technical implementation details (optional)

/

Sorry for my horrible english.

Originally created by @moon250 on GitHub (May 2, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Add an option to manage the start path of split panes. This can take the form of an option in the ``settings.json`` file. It can take different parameters: - ``default`` (the start path defined in the profile) (default value) - ``same`` (the current path of the pane where you split) - _custom_ (a path that will be used as the start path in each split pane) # Proposed technical implementation details (optional) / Sorry for my horrible english.
Author
Owner

@zadjii-msft commented on GitHub (May 2, 2022):

Largely, these are already settings:

Check out the docs: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#split-a-pane

"splitMode": "duplicate" will open the pane in the tab's CWD, if you've configured the shell to tell the Terminal what it's CWD is.

You could always run the command wt -w 0 sp -d ., and that would always split a new pane, in the CWD of the shell, in the current Terminal window. The -d . here is extra convenient because it relies on the shell's own rules for evaluating what directory . is, without any extra config from your side. Downside there is that it only works at a shell prompt.

@zadjii-msft commented on GitHub (May 2, 2022): Largely, these are already settings: Check out the docs: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#split-a-pane `"splitMode": "duplicate"` will open the pane in the tab's CWD, if you've [configured the shell to tell the Terminal what it's CWD is](https://docs.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory). You could always run the command `wt -w 0 sp -d .`, and that would always split a new pane, in the CWD of the shell, in the current Terminal window. The `-d .` here is extra convenient because it relies on the shell's own rules for evaluating what directory `.` is, without any extra config from your side. Downside there is that it only works at a shell prompt.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17387