Feature Request: Support arbitrary arguments for keybindings #1516

Open
opened 2026-01-30 22:29:23 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Jun 4, 2019).

Originally assigned to: @zadjii-msft on GitHub.

From discussion with @carlos-zamora and @DHowett-MSFT, and possibly in #968

Keybindings need to support arbitrary args, so that the handlers can parse their own arg values.

{
    keys: ["ctrl+shift+c"],
    action: copy,
    args:{
        type: "mungeData"
    }
},
{
    keys: ["ctrl+shift+pgup"],
    action: scroll,
    args:{
        amount: -1
    }
}

This is a feature that needs to absolutely be spec'd before implemented.

Originally created by @zadjii-msft on GitHub (Jun 4, 2019). Originally assigned to: @zadjii-msft on GitHub. _From discussion with @carlos-zamora and @DHowett-MSFT, and possibly in #968_ Keybindings need to support arbitrary args, so that the handlers can parse their own arg values. ``` { keys: ["ctrl+shift+c"], action: copy, args:{ type: "mungeData" } }, { keys: ["ctrl+shift+pgup"], action: scroll, args:{ amount: -1 } } ``` This is a feature that needs to absolutely be spec'd before implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1516