jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
10.26k stars 294 forks source link

hints should not mess with completions #2683

Closed RafalSkolasinski closed 1 month ago

RafalSkolasinski commented 1 month ago

Right now when I try to type

mise use kube<tab>

I am getting a hint

$ mise use kubemise hint see available plugins with mise registry        # < messed up line with my partial + hint
mise hint disable this hint with mise settings set disable_hints registry or all with mise settings set disable_hints "*"
$ mise use kube-controller-tools@0.16.3                                                  # < completion continues as usual
kubebuilder@  kubectl-bindrole@  kubefedctl@  kubergrunt@  kubeval@                kube-credential-cache@
kubecm@       kubectl-buildkit@  kubefirst@   kubeseal@    kubevela@               kube-linter@
kubecolor@    kubectl-convert@   kubelogin@   kubesec@     kube-capacity@          kube-score@
kubeconform@  kubectl-kots@      kubemqctl@   kubeshark@   kube-code-generator@
kubectl@      kubectx@           kubent@      kubespy@     kube-controller-tools@

Hints are great and I love them but they should not mess with completions. I am happy to see them once I execute my command. ~Also, would be nice if the "mise settings set disable_hints "*"" would hint on how to disable this specific hint, I wouldn't want to miss on others.~

roele commented 1 month ago

This looks similar to or like a regression of #2558

RafalSkolasinski commented 1 month ago

I should've mention I am using fish shell, the https://github.com/jdx/mise/issues/2558 is specific to zsh.

jdx commented 1 month ago

Also, would be nice if the "mise settings set disable_hints "*"" would hint on how to disable this specific hint, I wouldn't want to miss on others.

that is in the output you sent

RafalSkolasinski commented 1 month ago

that is in the output you sent

oh, that is there indeed...