Five issues with omni-completion.

(1)
How about adding an option to 'complete' to use omni-search?
That way ^P and ^N can be used for everything.  If omni worked well,
then I'd probably put it first in the list, even before ".".

(2)
However I'm having trouble getting omni-completion to do something
useful at all.  Here's an example:

In a C++ file:

    class Blah
    {
        float blab;
    };

    main()
    {
        Blah *b;
        b->bl        <---- Cursor at end of this line.
    }

Hitting ^X^O after "bl" should complete it as "blah" from the class
definition, but fails to find a match.

I downloaded the patched version of ctags as requested (for Win2000),
although the only difference in the tags file appears to be for enums
where there's an extra bit like "enum:62" for example.  In my tags
file I find the following relevant lines:

Blah    c.cpp   /^class Blah$/;"        c       file:
blab    c.cpp   /^    float blab;$/;"   m       class:Blah      file:

I don't see the "typename:" field as mentioned in the help file.
Is this the problem?  How do I get this to work?

(3)
Also, other than "->" and ".", "::" should also be considered, in
which case the identifier before the "::" should be expected to be a
type rather than a variable.  For example I tried completing the
following line inserted into the above file:

    Blah::bl

But the only completion was "Blah", which doesn't make sense in the
context (ie I got "Blah::Blah").

(4)
Actually since I have other files here too, it wasn't the only
completion, but it was interesting that the "Blah" completion came
last in the list.  Why?  Would be great if completions from the
current file were listed first, followed by completions from other
files with same name but different extension (usually header files),
followed by matches from any other files.

(5)
Finally, when a completion was found, a new window appeared above my
current one titled "[Scratch] [Preview]".  It has some info about the
match, but why is it there?  The window also stays around after I've
chosen a match and moved on.  It certainly shouldn't stay around
afterwards, but it also probably shouldn't appear in the first place.
Even the information it shows is already mostly shown on the
completion menu.

(6)
OK, one extra comment.  On the completion menu for the completion of
"Blah" in the above example, I see this:

    Blah          c class @@ - c.cpp

Am I meant to be able to make sense of this?  I figured out "c" means
it's a class, but what is "class @@"?

Thanks,
Rob.

--

Robert Webb <[EMAIL PROTECTED]>,
Want to make polyhedra?
http://www.software3d.com/Stella.html

Reply via email to