-
RequestA common pattern is to use Proposed solutionFrom the top of my head, some commands that would benefit from this pattern:
Anything else?I could not find any completion that implements this. I tried to write one myself, but it seems that a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Carapace has support for this with DashCompletion and DashAnyCompletion. I went back and forth to support this implicitly but commands vary too much. To continue the existing positional completion there is ActionPositional (ok, this one has no doc yet =D). carapace.Gen(blameCmd).DashAnyCompletion(
carapace.ActionPositional(blameCmd),
)
Git is quite complex so there are also a couple of opiniated choices that were made. |
Beta Was this translation helpful? Give feedback.
-
Oh and dash completion in carapace resets The reason for this is that this way |
Beta Was this translation helpful? Give feedback.
Carapace has support for this with DashCompletion and DashAnyCompletion.
I went back and forth to support this implicitly but commands vary too much.
So at least for now it has to be configured explicitly and probably is just not added yet.
To continue the existing positional completion there is ActionPositional (ok, this one has no doc yet =D).
Git is quite complex so there are also a couple of opiniated choices that were made.
E.g. to separate files from ref arguments (which can be a lot) they are only completed when a path prefi…