reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Documentation of specific available vi-mode keybindings

Open BatmanAoD opened this issue 3 years ago • 4 comments

I can't find a list of the specific bindings enabled by the current vi mode. I noticed that C doesn't have the standard behavior of deleting from the cursor to the end of the line and entering insert mode, so I'd like a convenient reference for what is or is not available.

(I'm aware this may exist somewhere and I just didn't notice it, but I couldn't find it in the NuShell or Reedline documentation, and I couldn't find a relevant existing issue.)

BatmanAoD avatar Apr 05 '22 20:04 BatmanAoD

You can get some of them by looking at keybindings default but for others you may have to dig into the code https://github.com/nushell/reedline/tree/main/src/edit_mode/vi

fdncred avatar Apr 05 '22 20:04 fdncred

Yeap. You are right. We need a chapter on what keybindings are available now for all edit modes

elferherrera avatar Apr 05 '22 20:04 elferherrera

You can get some of them by looking at keybindings default but for others you may have to dig into the code https://github.com/nushell/reedline/tree/main/src/edit_mode/vi

...oh wow, I didn't know about the keybindings command. That's kind of awesome, even if it is a little hard to read.

BatmanAoD avatar Apr 05 '22 20:04 BatmanAoD

Yeah I opened #350 but never got around... Probably thinking, let's fix the Vi weirdnesses first, instead of writing down what is broken

sholderbach avatar Apr 05 '22 20:04 sholderbach