lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

Is there a way to list all symbols in the currently open file? #59

Open YaLTeR opened 7 years ago

YaLTeR commented 7 years ago

Let's say I have a .cpp file open, is there a way to get a list of all, for example, functions in the file?

lyuts commented 7 years ago

Currently I don't see how to accomplish this with rtags. The closest we can get to is by doing: rc -S <class_name_defined in your current file> optionally combining with --kind-filter FunctionDecl. I don't know how to tell rtags to return results for current file only.

dawagner commented 7 years ago

It seems that filtering can be done with --path-filter :)

kenny1847 commented 6 years ago

@YaLTeR you could try https://github.com/majutsushi/tagbar, it's pretty nice

YaLTeR commented 6 years ago

That one's for ctags though.

ghost commented 5 years ago

If someone make rtags version of tagbar, is it beneficial?