Repository navigation
Does it make sense to add space after command when auto-completing? #4243
pavelzherdin
started this conversation in
General
Replies: 1 comment
|
It is mise's completion rather than your shell. The generated bash completion registers with Measured on v2026.8.3, bash 5.2: $ eval "$(mise completion bash)"; complete -p mise
complete -o bashdefault -o nosort -o nospace -F _mise miseThe reason it is there: mise completes things meant to be continued rather than terminated — If you prefer the space everywhere, re-register after sourcing the completion: eval "$(mise completion bash)"
complete -o bashdefault -o nosort -F _mise mise$ complete -p mise
complete -o bashdefault -o nosort -F _mise miseYou trade away the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
F.e., terraform does this: if you type in "terraform appl", and hit tab, it will finish the "apply" and add a space after it. AWS CLI does the same if it can. So typing "aws ec2" and then tab would do nothing, since ec2 is a prefix for more than one command.
Mise doesn't add that space, though. If I type "mise ru", it will get completed into "mise run", but the cursor stays at the "n".
Any reason not to add that space? Or could it be my shell that's doing this? I'm using bash.
-- edited:
Naturally, I figured out how to change this behavior after asking the question. Feel free to delete =)
All reactions