[PR #18917] Allow editing actions in the settings UI #31648

Open
opened 2026-01-31 09:48:37 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18917

State: closed
Merged: Yes


The actions page now has a list of all the commands (default, user, fragments etc) and clicking a command from that page brings you to an "Edit action" page where you can fully view and edit both the action type and any additional arguments.

Detailed Description of the Pull Request / Additional comments

Actions View Model

  • Added several new view models
    • CommandViewModel (view model for a Command), a list of these is created and managed by ActionsViewModel
    • ActionArgsViewModel (view model for an ActionArgs), created and managed by CommandViewModel
    • ArgWrapper (view model for each individual argument inside an ActionArgs), created and managed by ActionArgsViewModel

Actions page

  • No longer a list of only keybindings, instead it is a list of every command Terminal knows about

EditAction page

  • New page that you get to by clicking a command from the Actions page
  • Bound to a CommandViewModel
  • Allows editing the type of shortcut action and the command name
  • Depending on the shortcut action, displays a list of additional arguments allowed for the command with the appropriate templating (bool arguments are switches, flags are checkboxes etc)

Validation Steps Performed

Bug bashed

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18917 **State:** closed **Merged:** Yes --- The actions page now has a list of all the commands (default, user, fragments etc) and clicking a command from that page brings you to an "Edit action" page where you can fully view and edit both the action type and any additional arguments. ## Detailed Description of the Pull Request / Additional comments Actions View Model * Added several new view models * `CommandViewModel` (view model for a `Command`), a list of these is created and managed by `ActionsViewModel` * `ActionArgsViewModel` (view model for an `ActionArgs`), created and managed by `CommandViewModel` * `ArgWrapper` (view model for each individual argument inside an `ActionArgs`), created and managed by `ActionArgsViewModel` Actions page * No longer a list of only keybindings, instead it is a list of every command Terminal knows about EditAction page * New page that you get to by clicking a command from the Actions page * Bound to a `CommandViewModel` * Allows editing the type of shortcut action and the command name * Depending on the shortcut action, displays a list of additional arguments allowed for the command with the appropriate templating (bool arguments are switches, flags are checkboxes etc) ## Validation Steps Performed Bug bashed ## PR Checklist - [x] Closes #19019 - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:48:37 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31648