Saturday, February 19, 2011

Tagbar: a Taglist-like plugin that can handle scopes like classes etc.

Hi all,

I have always been bothered by the fact that the Taglist plugin (while
otherwise great) doesn't display the tags sorted according to their
scope. And since I'm working a lot with C++ these days I wanted to have
something that could actually display the information in such a more
useful way.

My initial plan was to simply extend the Taglist plugin -- I assumed
that would be the easiest option since the rest of the tag handling had
already been done. But since Taglist was written before Vim 7 introduced
lists and dictionaries I found its system of dozens of variables not
exactly intuitive. Another factor was that scopes can be nested, but
implementing that without similarly nesting data structures would
probably be a nightmare. So I decided instead to write a new plugin from
scratch, using the nice data structures provided by Vim 7.

I think the plugin is pretty much done now, there are just a few things
left that would be nice to have later on but are not really essential
right now in my opinion. I'm mentioning it here now before I upload it
to vim.org so that people can have a look at it in case it still has
some bugs (a few limitations are described in the documentation). It
*does* handle things like anonymous structures, so that's not an issue.

Here is the homepage:
http://majutsushi.github.com/tagbar/

And you can get the code from here:
https://github.com/majutsushi/tagbar

I hope it will be useful to someone.

Cheers,
Jan

--
-[ OpenPGP key ID: 00A0FD5F ]-
If a nation values anything more than freedom, it will lose its freedom; and
the irony of it is that if it is comfort or money it values more, it will
lose that, too.
-- W. Somerset Maugham

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: