linenoise icon indicating copy to clipboard operation
linenoise copied to clipboard

vi mode?

Open nogweii opened this issue 14 years ago • 6 comments

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.

nogweii avatar Apr 12 '10 01:04 nogweii

Added a pull request

bobrippling avatar Dec 27 '10 00:12 bobrippling

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

John-Appleseed avatar Sep 07 '14 02:09 John-Appleseed

+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.

dumblob avatar Mar 14 '15 19:03 dumblob

+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!

eggsyntax avatar Jan 24 '16 21:01 eggsyntax

This issue is addressed by https://github.com/antirez/linenoise/pull/92.

zorbash avatar Feb 03 '16 16:02 zorbash

Looks like #92 just got close without merging 😞

davetapley avatar Feb 09 '23 02:02 davetapley