Own command list #15640

Closed
opened 2026-01-31 04:44:11 +00:00 by claunia · 3 comments
Owner

Originally created by @ManPython on GitHub (Oct 21, 2021).

Description of the new feature/enhancement

Want have Own command list, eg. for own env https://github.com/microsoft/terminal/issues/11572

  • python manage.py runserver
  • python manage.py runserver -host=1.2.3.4
  • python manage.py runserver -host:1.2.3.4 port:12
  • python manage.py runserver -host=1.2.3.4 port=12
  • ..etc

Proposed technical implementation details (optional)

  • it be nice to see navigator for commands (explorer like scripts)
  • run these commands by shortcuts per custom tab with special env (eg. each env can have own scripts and shortcuts, in manage can select for which tab/env this commands pallete/shortcuts can work)
  • easy select last used commands, favorites
  • commands can be runed by ctr+shift+p from list where commands can have own names/descriptions
  • inspired cmder ;p
Originally created by @ManPython on GitHub (Oct 21, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Want have Own command list, eg. for own env https://github.com/microsoft/terminal/issues/11572 - python manage.py runserver - python manage.py runserver -host=1.2.3.4 - python manage.py runserver -host:1.2.3.4 port:12 - python manage.py runserver -host=1.2.3.4 port=12 - ..etc <!-- 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). --> # Proposed technical implementation details (optional) - it be nice to see navigator for commands (explorer like scripts) - run these commands by shortcuts per custom tab with special env (eg. each env can have own scripts and shortcuts, in manage can select for which tab/env this commands pallete/shortcuts can work) - easy select last used commands, favorites - commands can be runed by ctr+shift+p from list where commands can have own names/descriptions <!-- A clear and concise description of what you want to happen. --> - inspired cmder ;p
Author
Owner

@zadjii-msft commented on GitHub (Oct 21, 2021):

Okay so I'm gonna try and read between the lines a bit here. I discussed something similar in https://github.com/microsoft/terminal/issues/5273#issuecomment-611000935.

  • #1595 is the issue that's tracking an extension like this idea
  • Fragments might enable this in the future. I imagine fragments could load commands into the Terminal. Then, those might be available via the command palette. That's how I'm (eventually) planning on combining https://github.com/zadjii/keep with the command palette.
  • #5790 is tracking profile-specific keybindings. I suppose a variation on that theme is profile-specific commands, though, that feels... complicated?
  • the sendInput action probably will work for a lot of what you want today. e.g.
{ "command": { "action": "sendInput", "input": "git status\r" }, "keys":"ctrl+g", "name": "git status", "icon": "🌿"},
@zadjii-msft commented on GitHub (Oct 21, 2021): Okay so I'm gonna try and read between the lines a bit here. I discussed something similar in https://github.com/microsoft/terminal/issues/5273#issuecomment-611000935. * #1595 is the issue that's tracking an extension like this idea * Fragments might enable this in the future. I imagine fragments could load commands into the Terminal. Then, those might be available via the command palette. That's how I'm (eventually) planning on combining https://github.com/zadjii/keep with the command palette. * #5790 is tracking profile-specific keybindings. I suppose a variation on that theme is profile-specific commands, though, that feels... complicated? * the `sendInput` action probably will work for a lot of what you want today. e.g. ```json { "command": { "action": "sendInput", "input": "git status\r" }, "keys":"ctrl+g", "name": "git status", "icon": "🌿"}, ```
Author
Owner

@ManPython commented on GitHub (Oct 21, 2021):

Yeaa.. this what I'm looking

Soo.. where is sendInput ?
Where to put this?:
{ "command": { "action": "sendInput", "input": "python manage.py runserver\r" }, "keys":"ctrl+r", "name": "Run Django", "icon": ""},

@ManPython commented on GitHub (Oct 21, 2021): Yeaa.. this what I'm looking Soo.. where is `sendInput `? Where to put this?: `{ "command": { "action": "sendInput", "input": "python manage.py runserver\r" }, "keys":"ctrl+r", "name": "Run Django", "icon": ""},`
Author
Owner

@zadjii-msft commented on GitHub (Oct 21, 2021):

In the actions in your settings file: https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsModel/userDefaults.json#L24.

For more info, check out the docs.

@zadjii-msft commented on GitHub (Oct 21, 2021): In the `actions` in your settings file: https://github.com/microsoft/terminal/blob/main/src/cascadia/TerminalSettingsModel/userDefaults.json#L24. For more info, check out [the docs](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15640