linenoise icon indicating copy to clipboard operation
linenoise copied to clipboard

Behavior of C-w in redis-cli

Open laggardkernel opened this issue 5 years ago • 1 comments

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 avatar Aug 03 '20 02:08 laggardkernel

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

oranagra avatar Aug 03 '20 10:08 oranagra