-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh autocomplete issue tabbing after passing --set VAR value #695
Comments
Thank you for the detailed report! There's actually an alternative syntax for setting variables:
If an initial argument is of the form @heyrict, I was wondering you had an idea for a quick fix for this? If not, no worries! |
@casey Thanks! I prefer using
Also, pressing tab after just GREET_WORD=Hola …Justfile does not contain recipe `GREET_WORD=Hola`.
Justfile does not contain recipe `GREET_WORD=Hola`.
Justfile does not contain recipe `GREET_WORD=Hola`. ---> It should have autocompleted with a target. |
I'll publish a patch later today. |
There is an issue with the
zsh autocompletion when pressing tab after
just --set VAR value
It displays a block of error.
How to reproduce
Load autocompletion in your terminal
$ source <(just --completions=zsh)
Create a justfile
Use it
Use it with autocompletion
If we want to set the variable GREET_WORD from the command line using
--set
, we would enter:$ just --set GREET_WORD
then press Tab---> It autocompletes to:
$ just --set GREET_WORD greet
here, it should not autocomplete with a target, or anything, just wait for the user to enter a value.
But, if we type a correct content for the variable:
just --set GREET_WORD Hola
then press Tab----> we get:
-> Here, it should have autocompleted with a target.
You can see the steps above in this recording:
Note
It would be nice to be able to set parameters with --set using space OR
=
, e.g.just --set GREET_WORD Hola greet Robert
or
just --set GREET_WORD=Hola greet Robert
or
just --set=GREET_WORD=Hola greet Robert
or (with quotes, even):
just --set="GREET_WORD=Hola" greet Robert
(just mentioning this because using a = sign would not trigger this issue)
Versions
just v0.8.0
zsh 5.7.1 (x86_64-apple-darwin19.0)
The text was updated successfully, but these errors were encountered: