--
You received this message because you are subscribed to the Google Groups "jline-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jline-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/b2207551-93ab-48a4-bab4-d39a80972942%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
KeyMap<Binding> main = lineReader.getKeyMaps().get(LineReader.MAIN);main.bind(new Reference(LineReader.BACKWARD_KILL_WORD), KeyMap.ctrl('\u0008'));
The default binding for the BACKWARD_KILL_WORD action are Ctrl+W, Alt+Ctrl+H, Alt+Backspace.You can add a mapping for the same operation to Ctrl+Backspace easily.
On Fri, Jul 5, 2019 at 3:08 AM mightymalakai <mightym...@gmail.com> wrote:
I've been looking at using JLine 3 to handle some completion that I want to put into an app I'm building. One thing I noticed in the limited time that I've been working on a small demo is that ctrl-backspace doesn't delete whole words. When I'm using the normal Windows 10 cmd prompt it works and so does using Java System.in, but when I use a JLine 3 LineReader ctrl-backspace only deletes a single character.--Just so it's clear, I'm talking about typing "hello world" and then pressing ctrl-backspace which changes it to "hello ". JLine 3 shows "hello worl".Is there a way to enable ctrl-backspace functionality for deleting words, or is this a limitation?Thanks
You received this message because you are subscribed to the Google Groups "jline-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jline...@googlegroups.com.