Cycle through autocompletion candidates with Tab like zsh
Is your feature request related to a problem? Please describe.
For example we have a number of k8s contexts:
regional-cluster-eu-west-1-dev
regional-cluster-eu-west-1-prod
regional-cluster-us-east-1-dev
regional-cluster-us-east-1-prod
If I want to switch to regional-cluster-us-east-1-prod in k8s, I type :ctx r and k8s already shows me the first suggestion regional-cluster-eu-west-1-dev.
If I press <tab>, it will autocomplete the rest and I need to delete the eu-west-1-dev bit and type u<tab>.
Alternatively, I need to type regional-cluster-u<tab> but that is longer, and also autocompletes regional-cluster-us-east-1-dev, so I need to delete the -dev bit and type -p<tab>.
Describe the solution you'd like
It would be nice if the autocompletion would cycle through suggestions when pressing <tab> if there are more than one, and then the use can pick the right by pressing <Enter>. If there is only one item matching, then <tab> would autocomplete the whole line.
Describe alternatives you've considered
The alternative would be a bash-style autocompletion where <tab> only autocompletes to the common prefix:
:ctx r<tab> completes to regional-cluster- and stops there. Then I can type u<tab> to complete to regional-cluster-us-east-1-.
Source: derailed/k9s