antirez / linenoise

A small self-contained alternative to readline and libedit
BSD 2-Clause "Simplified" License
3.78k stars 665 forks source link

Behavior of C-w in redis-cli #190

Open laggardkernel opened 4 years ago

laggardkernel commented 4 years ago

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?

oranagra commented 4 years ago

@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)