linenoise
linenoise copied to clipboard
vi mode?
This would seriously up the line count, but I'm also an addict that can't get enough of vi/vim.
Some knowledge of modes, with support for Esc, i, h, l, j & k are the minimal requirements.
Added a pull request
The best feature would be is to have vim mappings. Then I can throw away my .inputrc and start using some imap and nmap shortcuts for all my abbreviated commands. Bash with normal mode would make the command line as productive as the editor. :)
iabbr d !debug_command;
nmap g !git status
+1
Thank you @bobrippling for your patch - it adds support basically for the whole vi mode, which is awesome! Actually those 150 new lines are imho definitely worth including this patch into this original repository.
+1
This would be a fantastic improvement from my point of view, as I'm using another project (Planck) that uses linenoise. Is anything blocking the pull request from being merged? Thanks!
This issue is addressed by https://github.com/antirez/linenoise/pull/92.
Looks like #92 just got close without merging 😞