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

Support ESC ESC sequences, and bind alt+left/alt+right #517

Merged
merged 1 commit into from
May 9, 2021

Conversation

thomcc
Copy link
Contributor

@thomcc thomcc commented May 3, 2021

This has a few more of the sequences from #333. (Note that while #435 indicated this was the only type of missing sequence, I think there are a few more still).

Anyway, in particular, this style of sequence is emitted by iTerm2 (at least, in, err, the configuration I use, which I think is default), and so not having support for it was a little annoying. It's also used by rxvt-family terminals, and while I've tested this in them, I don't regularly use them, so I don't care as much.

Using recursion the way this does is a bit hacky way, but in practice it works on everything I've tried. Also, this follows the actual "logic" these terminals use for the meta/alt key, so it makes a kind of sense.


The other thing it implements is ALT+Left and ALT+Right by-word movement. This is pretty ubiquitous (emacs, bash, every macos textbox, ...), and was the main reason I wanted to make ESC ESC sequences work, so I added it too.

@gwenn gwenn merged commit 7958675 into kkawakam:master May 9, 2021
@gwenn
Copy link
Collaborator

gwenn commented May 9, 2021

Thanks.

@gwenn
Copy link
Collaborator

gwenn commented May 18, 2021

Version 8.1.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants