Sublime Forum

Use Sublime Text file index from a plugin

#1

Hello everyone.

I was wondering if there is a way to interface with sublime’s built-in file indexing. I am a developer of a clang-based completion plugin for ST3 and the issue there is that while there is a reliable way to find declaration of a symbol it is not trivial to get its definition (for more details, see this issue).

I am using ST3 build-in indexing to navigate to definitions of symbols in my daily workflow and would love to use it within my plugin to provide users with a better experience.

Therefore the question: is there any way to interface with the index from within a plugin?

Please feel free to ask any questions should anything in my description be unclear.

0 Likes

#2

Check out the API methods related to symbol: https://www.sublimetext.com/docs/3/api_reference.html

1 Like

#3

Oh, how stupid. Did not see the lookup_symbol_in_index(symbol)
Thanks a lot!

0 Likes