Hi, I think it's possible, actually I am looking for working on it with my plugin OmniCppComplete (C++ omni completion).
The main difficulty is to get the type of your object "f" and this script has some tools to do this. At the moment, when you complete an object, the script can find (not always, there is some bugs) the type of your object (foo here). It can also resolve namespaces and current context, it can see the difference between MyNamespace1::foo and MyNamespace2::foo. I'll work to make existing functions easier to use, so someone else or me can make easily a "contextual tags" plugin. Best regards, Vissale 2006/11/14, Aaron Griffin <[EMAIL PROTECTED]>:
I've been curious about this for some time, and I've never found a solution. I figured I'd bring this up, just in case someone else did find something useful. It's easy to make ctags output parent::member tags for c/c++ classes and structs (--extra=+q), and while that's semi-useful, it doesn't help in the following (common) case: struct foo { int bar; }; struct foo f; f.x[y]z; /* [] indicates the cursor */ You cannot jump from here to foo::xyz, as f is not known to be of type 'foo'. Does anyone know of a way to make C-] work in the above case, assuing the tags file has the proper typename::member information? If you do, I will love you forever. Thanks in advance, Aaron Griffin
-- Vissale Live For Speed Racer - http://www.liveforspeed.net