-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
A-completionArea: completion generatorArea: completion generatorS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementingStatus: Waiting on user-facing design to be resolved before implementing
Description
Repro (using Jujutsu CLI, I can provide a minimal repro later):
$ bash
$ COMPLETE=bash jj __this-command-does-not-exist >? tmp.sh
$ . ./tmp.sh
$ jj --config-file ~/<Tab>
There are no completions. Same on jj --config-file $HOME/
etc.
Two options to resolve this:
- Don't compute any completions for
AnyPath
args but tell the shell to
complete as if there were no custom completions. This is what Cobra does. - Try to expand and unexpand shell syntax ourselves, so we can actually compute completions.
This is quite tricky.
I wonder if we want 1 as "temporary" measure.
Metadata
Metadata
Assignees
Labels
A-completionArea: completion generatorArea: completion generatorS-waiting-on-designStatus: Waiting on user-facing design to be resolved before implementingStatus: Waiting on user-facing design to be resolved before implementing