knz / go-libedit

Go wrapper around the BSD libedit replacement to GNU readline
Apache License 2.0
6 stars 6 forks source link

configuring vim keybindings with `bind -v` breaks tab completion #1

Closed benesch closed 7 years ago

benesch commented 7 years ago

Naively configuring vim keybindings a la

$ cat ~/.editrc
bind -v

breaks tab completion and ^C interrupts. Arguably not a bug in go-libedit, but I've only ever configured readline and I expected bind -v to work like set editing-mode vi. Fixed with a smarter ~/.editrc, but @knz you mentioned we might be able to do something on the go-libedit side too?

$ cat ~/.editrc
bind -v
bind "^R" em-inc-search-prev
bind "^C" rl_interrupt
bind \\t rl_complete
knz commented 7 years ago

Addressed in 438167ad0c588fe6f2e87cb6ba8a4e9753e6d26e.

benesch commented 7 years ago

Thanks, @knz!