Script Snips #10749

Closed
opened 2026-01-31 02:29:16 +00:00 by claunia · 2 comments
Owner

Originally created by @torrentx on GitHub (Sep 24, 2020).

Description of the new feature/enhancement

A way to save and quickly use common command line inputs. For example git commands such as:

git.exe pull --progress -v -no-rebase "origin"

Proposed technical implementation details (optional)

Add a Snips folder to the drop down next to tabs at the top. Functionality here would be edit/delete/add/reorder snippets.

From the command line Alt-Shift- would copy it to the command line and allow for immediate running.

For example
alt-shift-1 Enter would pull the snippet and run it.

Originally created by @torrentx on GitHub (Sep 24, 2020). # Description of the new feature/enhancement A way to save and quickly use common command line inputs. For example git commands such as: > git.exe pull --progress -v -no-rebase "origin" # Proposed technical implementation details (optional) Add a Snips folder to the drop down next to tabs at the top. Functionality here would be edit/delete/add/reorder snippets. From the command line Alt-Shift-<number or letter of script> would copy it to the command line and allow for immediate running. For example alt-shift-1 Enter would pull the snippet and run it.
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:29:16 +00:00
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Sep 24, 2020):

You can already edit settings.json to bind Alt+Shift+1 to the sendInput action (https://github.com/microsoft/terminal/issues/3799) with the snippet as a parameter. https://github.com/microsoft/terminal/issues/1564 mentions that key bindings would be part of the settings UI in the future.

@KalleOlaviNiemitalo commented on GitHub (Sep 24, 2020): You can already edit `settings.json` to bind Alt+Shift+1 to the [`sendInput` action](https://docs.microsoft.com/windows/terminal/customize-settings/actions#send-input) (<https://github.com/microsoft/terminal/issues/3799>) with the snippet as a parameter. <https://github.com/microsoft/terminal/issues/1564> mentions that key bindings would be part of the settings UI in the future.
Author
Owner

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

Indeed. sendInput is going to be our story for now, and once we get the ability to bind actions into the menu and toolbar and stuff it'll be easy to build up a compendium of snippets.

Gotta ask, though: why not use an alias in your shell? They're way more flexible than a "blast this input into the terminal" button...

@DHowett commented on GitHub (Sep 25, 2020): Indeed. `sendInput` is going to be our story for now, and once we get the ability to bind actions into the menu and toolbar and stuff it'll be easy to build up a compendium of snippets. Gotta ask, though: why not use an alias in your shell? They're way more flexible than a "blast this input into the terminal" button...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10749