Open joelthelion opened 14 years ago
Thanks for the bug report!
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:
vv [--vf <image> || --overlay <image> || <image>] ...
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...
Thanks for your answer! And thanks again for the great software, you're really filling a void here.
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?