peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.04k stars 132 forks source link

Liner should respect .inputrc semantics #120

Open danielpops opened 5 years ago

danielpops commented 5 years ago

If I have a .inputrc file active (e.g. set editing-mode vi to get vim bindings), liner should respect bash's .inputrc settings, similar to how python, mysql, etc. other shells behave.

Actual Behavior

vi bindings are not supported

Steps to Reproduce the Problem

Create a .inputrc in your home directory with the following contents: set editing-mode vi exec bash (or equivalent) to activate. Observe vi mode ability to e.g. switch between normal vs insert mode is respected Use the liner. Observe vi mode ability to e.g. switch between normal vs insert mode is not respected

Additional Info

this occurs in bash on ubuntu xenial and osx mojave, with Terminal.app and iTerm2.app