Sublime Forum

How can I get all symbols(or views) in a window?

#1

Hi.
I found that we can get all symbols in a single view with:
view.indexed_symbols() or view.symbols()
and we can also look up symbols by function:
window.lookup_symbol_in_index(sym).

My question is:
Is that a way we get all files’ symbols from a window or a project whose files are not opened?

0 Likes

#2

After skimming through sublime.py, there doesn’t seem to be a way to do this.

0 Likes

#3

Thanks! I did that too and got nothing, either.
And I tried to use open_file() to create views for every file but failed cause this method is async.
Besides, new sublime.Window() and then open_file(),
new sublime.View() and retarget(),
use threading,
FAILED…
Does anyone have a idea to get all symbols so that we can build an index of classes and functions to do many funny things lol?

0 Likes