Closed Mawdac closed 4 days ago
Not knowing rip2, could you give an example of like
Try completing
$ rip2 something\t
Expected completions:
Actual completions:
If I'm understanding correctly, it sounds like rip2
takes subcommands xor positional arguments and the -f
on subcommands is preventing the completion of the positional arguments and hoping a further elaboration like above can clarify the problem.
Here's an example of the issue:
touch great.sh
rip gr\t
Expected completions:
great.sh
graveyard
Actual completions
graveyard
Hopefully this is more clear, let me know if I can provide anything further.
Thanks!
To fix this, we'll need to check whether positionals are supported in addition to subcommands.
We should ensure a test has this covered in a commit before making the change so that the tests get updated along the way, showing how the behavior changed.
Hello! I first reported this issue downstream in https://github.com/MilesCranmer/rip2. The issue is that the completions generated for fish include
-f
which prevents files from being included in completion, which in this case is not desired.Original issue: https://github.com/MilesCranmer/rip2/issues/39
Since I'm not familiar with rust I'll just elaborate on the issue itself, here are the completions generated from rip2:
And it's these 3 that (in my testing) are the problematic
-f
flags:Removing those allows files to be included in completion. Here's the author's reply on their usage: