Skip to content

Keyboard bindings for terminal escape sequences. #12007

Closed

Description

@Chaz6

Description of the new feature/enhancement

I would like to be able to create key bindings for terminal escape sequences. For example, I would like to bind ctrl+tab to \x1B[27;5;9~ and ctrl+shift+tab to \x1B[27;6;9~.

Proposed technical implementation details (optional)

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on Dec 21, 2021
  2. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Dec 21, 2021
  3. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Dec 21, 2021
  4. j4james commented on Dec 21, 2021

    @j4james
    Collaborator

    You can already achieve this with a sendInput action (see PR #7249). For example, try adding the following comands in the actions section of you settings.json file:

    { "command": { "action": "sendInput", "input": "\u001b[27;5;9~" }, "keys": "ctrl+tab" },
    { "command": { "action": "sendInput", "input": "\u001b[27;6;9~" }, "keys": "ctrl+shift+tab" }
    
  5. Chaz6 commented on Dec 21, 2021

    @Chaz6
    Author

    Thank you! Sorry if I missed it in the documentation.

  6. j4james commented on Dec 21, 2021

    @j4james
    Collaborator

    No worries. I also originally thought it wasn't documented, but I see now there are actually some docs here:
    https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#send-input

  7. Chaz6 commented on Dec 21, 2021

    @Chaz6
    Author

    Thanks very much 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions