You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found no answer to the question in title in documentation nor GitHub issues nor PRs.
Is it possible to do something like that at all and if yes, could you please point me to documentation, source code or anything which can explain how to archive task arguments completion?
Below is a long explanation with example of what I would like to be able to do.
Let's say I created a task in my justfile with name task-a which accepts one argument with values x, y, z.
At the moment even if I setup auto completions for just (i.e. with source <(~/.cargo/bin/just --completions bash) command in ~/.bashrc) I wasn't able to type just task-a press and get auto completion suggestions for x, y, z. Or when I type just task-a w where w if first letter of x value and then press I would like to get completion to the full value of x.
Another example of this could be when I have task-b which accepts one argument which is a list (or filtered list) of files in a specific project directory. Then typing just task-b some-fi and then I would get a completion to just task-b some-file-name where some-file-name is a name of the file existing somewhere and implementation of task-b define where to find that file. In this case I don't assume just be smart enough to understand implementation of task-b I just want to explain (i.e. provide a path or mask to files) which can be used as potential variants for auto completion.
And thank you for the nice task runner! I really enjoy using it and extend my set of tasks almost every day!
The text was updated successfully, but these errors were encountered:
No, I am still waiting for answers preferably from maintainers of the project. Meanwhile I started to look how it can be done. I think if there is nothing out there I will try to implement it and submit PR. But definitely it'll take a bit of time, but I hope to be able to do it during next month of so.
I have found no answer to the question in title in documentation nor GitHub issues nor PRs.
Is it possible to do something like that at all and if yes, could you please point me to documentation, source code or anything which can explain how to archive task arguments completion?
Below is a long explanation with example of what I would like to be able to do.
Let's say I created a task in my
justfile
with nametask-a
which accepts one argument with valuesx
,y
,z
.At the moment even if I setup auto completions for
just
(i.e. withsource <(~/.cargo/bin/just --completions bash)
command in~/.bashrc
) I wasn't able to typejust task-a
press and get auto completion suggestions forx
,y
,z
. Or when I typejust task-a w
wherew
if first letter ofx
value and then press I would like to get completion to the full value ofx
.Another example of this could be when I have
task-b
which accepts one argument which is a list (or filtered list) of files in a specific project directory. Then typingjust task-b some-fi
and then I would get a completion tojust task-b some-file-name
wheresome-file-name
is a name of the file existing somewhere and implementation oftask-b
define where to find that file. In this case I don't assumejust
be smart enough to understand implementation oftask-b
I just want to explain (i.e. provide a path or mask to files) which can be used as potential variants for auto completion.And thank you for the nice task runner! I really enjoy using it and extend my set of tasks almost every day!
The text was updated successfully, but these errors were encountered: