-
-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Request
A common pattern is to use -- to separate flags from other arguments, usually paths. It's a default behaviour for many programs, and libraries like getopt.
Proposed solution
From the top of my head, some commands that would benefit from this pattern:
git status -- some/dir<TAB>(same withdiff,log, and many other commands)bash -x -- .local/<TAB>tree -d -- /etc/ng<TAB>
Anything else?
I could not find any completion that implements this. I tried to write one myself, but it seems that a -- argument breaks the parsing of carapace. In my tests, the callback passed to PositionalAnyCompletion() was never called for arguments after --. Unless I'm mistaken, the carapace API does not document this nor provide an alternative. I did not dig any further, so I may haved missed obvious solutions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request