Open baptistemehat opened 1 month ago
clap
enables developpers to generate static completions at build time such as
forest <tab>
task tree note switch ...
but for now, it does not provide ant way to generate dynamic completion functions (ie, retrieving task and note ids for completion) at build time:
forest note edit <tab>
099cc8 #my note
922aaf # another note
...
From there I see two options:
_complete
command to forest and call it from the completion script. This command would perform all the completion for usHere is what just
does:
just --completion
generates the completion for all shells, and some parts of the completion scripts get modified by the --completions
command to add dynamic completion in raw bash|zsh|fish|...
For now, add the basic static buildtime-generated completions alongside the binary. Dynamic completion can wait.
Investigate how to add completion to the app for completing: