nushell / reedline

A feature-rich line editor - powering Nushell
https://docs.rs/reedline/
MIT License
549 stars 152 forks source link

Option for always-active completions #356

Open jmoore34 opened 2 years ago

jmoore34 commented 2 years ago

One feature of zsh-autocomplete we might consider adding an option for is always-active completions, i.e. you don't need to press tab to open the completion menu.

One use case of this is that is makes navigating around the filesystem easier as you don't have to alternate between ls and cd.

navigate1

Nested folders in particular are very easy to navigate just by pressing 'tab' over and over:

nested

Related: #357

elferherrera commented 2 years ago

I would make it a mode that you can get in and out with an event. I wouldn't want completions all the time while writing a pipeline in nushell

notramo commented 2 years ago

Why would it need a mode? They are displayed, but inserted only when you press Tab.

The command line mode (:) of the Kakoune editor also has this feature.

tobiasBora commented 1 year ago

I'd love this, not having a better completion like the one provided by the aforementionned library is a showstopper for me for using nushell. Ideally it would also work for any kind of completion, and display the description of the command options. Fuzzy matching for the path (like the one provided by ido on emacs) would also be extremely helpful.