Add keyboard shortcuts for running a commands in windows terminal #8525

Closed
opened 2026-01-31 01:31:40 +00:00 by claunia · 4 comments
Owner

Originally created by @topzdev on GitHub (May 23, 2020).

Description of the new feature/enhancement

Im tired of typing a long syntax to open a multiple split-pane in windows terminal for example:

in my daily dev i always type this long command "wt split-pane -p "Bash" -d . ; split-pane -p "Bash" -d . -V; split-pane -p "Postgres" -d . -V;" just to open windows termnial with 3 split pane. its pain in the ass to this method instead of this i propose to add a command line in keybindings so that its easy to lunch a windows terminal with a few clicks just click ctrl-shift-m to run that command line

Proposed technical implementation details (optional)

 "keybindings": [
{"commandLine": "wt split-pane  -p \"Bash\" -d . ; split-pane -p \"Bash\" -d . -V; split-pane -p \"Postgres\" -d  . -V;", "keys":"ctrl+shift+m"}
// other settings here...
]

Typing that key bindings it let run the command line to windows terminal and launch the thing you want to run. I hope this kind of feature added to the future updates. Thank you in advance microsoft dev! more coffee to come!

Originally created by @topzdev on GitHub (May 23, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Im tired of typing a long syntax to open a multiple split-pane in windows terminal for example: in my daily dev i always type this long command "wt split-pane -p "Bash" -d . ; split-pane -p "Bash" -d . -V; split-pane -p "Postgres" -d . -V;" just to open windows termnial with 3 split pane. its pain in the ass to this method instead of this i propose to add a command line in keybindings so that its easy to lunch a windows terminal with a few clicks just click ctrl-shift-m to run that command line # Proposed technical implementation details (optional) ``` "keybindings": [ {"commandLine": "wt split-pane -p \"Bash\" -d . ; split-pane -p \"Bash\" -d . -V; split-pane -p \"Postgres\" -d . -V;", "keys":"ctrl+shift+m"} // other settings here... ] ``` <!-- A clear and concise description of what you want to happen. --> Typing that key bindings it let run the command line to windows terminal and launch the thing you want to run. I hope this kind of feature added to the future updates. Thank you in advance microsoft dev! more coffee to come!
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:31:40 +00:00
Author
Owner

@j4james commented on GitHub (May 24, 2020):

This would probably be covered by issue #3799 and/or #2046.

@j4james commented on GitHub (May 24, 2020): This would probably be covered by issue #3799 and/or #2046.
Author
Owner

@DHowett commented on GitHub (May 25, 2020):

Yep, both of those cover this. One would run commands inside the terminal, and one would run terminal commands. /dup #3799 #2046.

This is also tied to #5970 (one action runs multiple actions)

@DHowett commented on GitHub (May 25, 2020): Yep, both of those cover this. One would run commands _inside_ the terminal, and one would run _terminal commands_. /dup #3799 #2046. This is also tied to #5970 (one action runs multiple actions)
Author
Owner

@ghost commented on GitHub (May 25, 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 25, 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!
Author
Owner

@DHowett commented on GitHub (May 25, 2020):

When 5970 lands, you'll be able to specify one action that runs multiple actions.

Mapping:

+----------+      +---------+       +---------+
|          +----->+         +<------+         |
| Command- |      | ACTIONS |       | Key     |
| line     +----->+         +<------+ Bidings |
| Args     |      |         |       |         |
|          +----->+         +<------+         |
+----------+      +---------+       +---------+
@DHowett commented on GitHub (May 25, 2020): When 5970 lands, you'll be able to specify one action that runs multiple actions. Mapping: ``` +----------+ +---------+ +---------+ | +----->+ +<------+ | | Command- | | ACTIONS | | Key | | line +----->+ +<------+ Bidings | | Args | | | | | | +----->+ +<------+ | +----------+ +---------+ +---------+ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8525