-
Notifications
You must be signed in to change notification settings - Fork 183
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
vi keymap bindings in inputrc broken #113
Comments
What is this inputrc supposed to do exactly ? |
This inputrc (for readline anyway, which is what inputrc is for) maps "u" to "undo" in vi command mode only (not in vi insert mode), so that you can type "u" fine normally, but "u" does an undo (often a no-op). With jline it instead binds u to "undo" in vi insert mode, which makes in impossible to type "u". jline doesn't seem to understand what "set keymap vi" means (i.e., the following bindings don't apply in insert mode). I haven't actually looked at this in a year or so, and worked around it by setting jline.inputrc in ~/.jline.rc, but it does still seem to be a problem. |
I'm upgrading Scala to JLine 2.14.1. During testing, we noticed that when a user has Was that an intended consequence of this change? |
I'm okay with the fact that vi mode is generally broken, but unfortunately having vi-mode mappings interferes with normal insert mode. I have the following in my ~/.inputrc:
This works as expected with GNU readline (in bash, etc) but breaks 'u' in insert mode (rather than vi mode) with jline. Build tests fail as follows:
I don't need undo or vi mode to work in jline by any means, but if it cannot parse inputrc correctly, perhaps it should not try, or use a different config file. (I'd rather not break all my other programs just to be able to type in the play console, so any other workarounds would be great, too.)
The text was updated successfully, but these errors were encountered: