reedline
reedline copied to clipboard
Modal Menus
Currently you need to press a keybind to activate any of the menus (help, completion, etc.). Being able to see the menu suggestions all the time would be a great - similar to how you would use autocompletion in IDE. Modal menus would mean that instead of having to press a keybind to activate them, they are always active. Instead of pressing a keybind to activate the menu itself, the keybinds can be used to switch between different menu - hence modal.
The downside of this approach is that menus take a big part of the screen & this would hide the output from previously ran commands. This could make it hard to work with smaller terminals. Because of this, modal menus should be an opt-in option.
References
zsh has a plugin that does this for the completion menu in zsh: https://github.com/marlonrichert/zsh-autocomplete It also has an extra feature for fuzzy searching through completion or history items as seperate menus (ctrl-s/r in zsh-autocomplete).