rb-readline icon indicating copy to clipboard operation
rb-readline copied to clipboard

VI in Rails Console

Open nkabbara opened this issue 7 years ago • 2 comments

Hello,

I have a feeling I'm asking this in the wrong place, but I can't seem to find a better place to ask.

In IRB, (I think it's using system readline) I can use vi commands to navigate the shell. But under rails console (rails 5) I can't seem to get that to work no matter what I try. Things I tried:

  1. created .inputrc with "set editing-mode vi"
  2. created .editrc with "bind -v"
  3. recompiled ruby with system readline

Is this from an rb-readline limitation?

I'm on a OSX Sierra with Rails 5.02

Thanks in advance.

nkabbara avatar Mar 27 '17 18:03 nkabbara

Vi mode is unimplemented in rb-readline just now, I'm afraid.

See 79c5a3bdc1329630997db004e37c4b48382b9964 and 9083221abdc6588c0a370fd9532cae248ff89ba1.

Spakman avatar May 15 '17 08:05 Spakman

Implementing this would make me 500% more productive. Pleeeeeeaaase implement this!

benlieb avatar Feb 27 '19 18:02 benlieb