linenoise
linenoise copied to clipboard
Behavior of C-w in redis-cli
Use foo:bar as an example. In redis-cli, Ctrl-w delete the whole word. This behaves differently from other tools depending on readline like myql, which only delete bar and leaves foo:.
Can I customize the behavior?
@laggardkernel i just tested and it seems that in that respect Ctrl+w redis-cli behaves the same as bash.
however, i see that in bash Alt+Backspace does what you said, and in redis-cli it does nothing.
There's no option to customize it, but feel free to make pull request (code is in deps/linenoise/linenoise.c)