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

<M-[> appears to not be working as macro #255

Closed
mrusme opened this issue Apr 12, 2024 · 4 comments
Closed

<M-[> appears to not be working as macro #255

mrusme opened this issue Apr 12, 2024 · 4 comments
Labels
ui Issues related to rendering, widgets, or general terminal-related issues

Comments

@mrusme
Copy link

mrusme commented Apr 12, 2024

I use the following config:

[macros.normal]
"<C-Q>" = ":qa<Enter>"
"<M-[>" = "gT"
"<M-]>" = "gt"

Pressing alt+] works flawlessly, however alt+[ does not and results in other shortcuts not working anymore until e.g. ctrl+c is being pressed.

@ulyssa ulyssa added the ui Issues related to rendering, widgets, or general terminal-related issues label Apr 13, 2024
@ulyssa
Copy link
Owner

ulyssa commented Apr 13, 2024

<M-[> is going to appear like the start of a CSI sequence (^[[) in the terminal, so it's going to issues getting parsed by crossterm at the moment. I believe this could be fixed enabling the keyboard enhancement protocol, which will make it work in some terminals like kitty, foot, or wezterm.

@ulyssa
Copy link
Owner

ulyssa commented Apr 22, 2024

I've added support for enabling the Kitty keyboard enhancement protocol when it's available in #272, or attempting to turn on modifyOtherKeys when it's not. I've listed terminals that this works for over there, and I'll eventually update the website to include a Terminal Recommendations page on the site to help people find terminals with support.

@ulyssa ulyssa closed this as completed Apr 22, 2024
@mrusme
Copy link
Author

mrusme commented Jul 19, 2024

Just a quick follow up: Thank you for fixing this, is there going to be a new release that will include the fix anytime soon? :)

@mrusme
Copy link
Author

mrusme commented Aug 22, 2024

I saw that a new version was released yesterday and updated. I can confirm that your fix works perfectly, <M-[> and <M-]> allow me to switch tabs now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Issues related to rendering, widgets, or general terminal-related issues
Projects
None yet
Development

No branches or pull requests

2 participants