You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because compleat thinks that your "--vf" could be either an <image>or the --vf option. (For performance reasons it runs the image shell command only if it's completing the last word on the command line; otherwise it just matches anything.)
I could fix this by (optionally?) allowing completers to run a shell command to generate matches mid-command-line. Another solution that would be faster (but maybe more complicated for users) is a "prioritized choice" operator. Then you could write something like this:
and then the <image> pattern would be tried only if --vf and --overlay did not already match the current word.
Finally, I've been thinking about giving special treatment to any argument starting with dashes, so they would be distinguished somehow from other things like filename arguments.
I'll try out one or more of these ideas sometime, and I'll let you know what I come up with...
Hi,
I have created a simple completion file for vv, a medical image viewer:
The first word () is completed alright, however if I type the following:
in a directory containing the following files:
I get the following completions:
when I would expect:
Am I missing something? Or is this a bug?
The text was updated successfully, but these errors were encountered: