[PR #1349] Add a spec draft for Keybindings Arguments #24602

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

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

State: closed
Merged: Yes


Summary of the Pull Request

The goal of this change is to both simplify the keybindings, and also enable far
more flexibility when editing a user's keybindings.

Currently, we have many actions that are very similar in implementation - for
example, newTabProfile0, newTabProfile1, newTabProfile2, etc. All these
actions are fundamentally the same function. However, we've needed to define 9
different actions to enable the user to provide different values to the newTab
function.

With this change, we'll be able to remove these essentially duplicated events,
and allow the user to specify arbitrary arguments to these functions.

References

Might play into #968, since there's some discussion of to munge or not to munge with the default keybinding for copy. This would make it easy to add both.

PR Checklist

Detailed Description of the Pull Request / Additional comments

Just read the spec :)

Validation Steps Performed

It's a spec.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/1349 **State:** closed **Merged:** Yes --- <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request The goal of this change is to both simplify the keybindings, and also enable far more flexibility when editing a user's keybindings. Currently, we have many actions that are very similar in implementation - for example, `newTabProfile0`, `newTabProfile1`, `newTabProfile2`, etc. All these actions are _fundamentally_ the same function. However, we've needed to define 9 different actions to enable the user to provide different values to the `newTab` function. With this change, we'll be able to remove these _essentially_ duplicated events, and allow the user to specify arbitrary arguments to these functions. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References Might play into #968, since there's some discussion of _to munge or not to munge_ with the default keybinding for copy. This would make it easy to add _both_. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Specs #1142 <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Just read the spec :) <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed It's a spec.
claunia added the pull-request label 2026-01-31 09:04:17 +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#24602