Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard bindings for terminal escape sequences. #12007

Closed
Chaz6 opened this issue Dec 21, 2021 · 4 comments
Closed

Keyboard bindings for terminal escape sequences. #12007

Chaz6 opened this issue Dec 21, 2021 · 4 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@Chaz6
Copy link

Chaz6 commented Dec 21, 2021

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)

@Chaz6 Chaz6 added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Dec 21, 2021
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 21, 2021
@j4james
Copy link
Collaborator

j4james commented Dec 21, 2021

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" }

@Chaz6
Copy link
Author

Chaz6 commented Dec 21, 2021

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

@Chaz6 Chaz6 closed this as completed Dec 21, 2021
@j4james
Copy link
Collaborator

j4james commented Dec 21, 2021

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

@Chaz6
Copy link
Author

Chaz6 commented Dec 21, 2021

Thanks very much 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants