fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

Support ctrl+p for "Previous command" navigation #103

Closed Dispader closed 2 years ago

Dispader commented 2 years ago

crtl-p (and ctrl-n) for previous (next) command navigation is widely supported in shell environments. It feels like we would enhance user experience by supporting these navigation keys.

fishi0x01 commented 2 years ago

ctrl-p and ctrl-n keybindings are already supported. I just confirmed locally with the latest vsh release.

vsh uses c-bata/go-prompt for prompt emulation. It specifically supports ctrl-p and ctrl-n https://github.com/c-bata/go-prompt#keyboard-shortcuts