![](https://cdn.userecho.com/characters/98.png?1)
+7
API: Enhance view.get_symbols() to return arbitrary symbol list
As requested in this post http://www.sublimetext.com/forum/viewtopic.php?f=6&t=1407&start=0 , I fairly often need to find where symbols are in a source.
Actually get_symbols() only return the symbols defined in "showInSymbolList" (Goto Symbol) and you don't have any option to find something else.
I propose to add a parameter to get_symbols (or create a new function) to specify the symbol(s) to return.
Example:
view.get_symbols("source.python meta.function.python") return the list of Regions containing function declaration in a python source.
Actually get_symbols() only return the symbols defined in "showInSymbolList" (Goto Symbol) and you don't have any option to find something else.
I propose to add a parameter to get_symbols (or create a new function) to specify the symbol(s) to return.
Example:
view.get_symbols("source.python meta.function.python") return the list of Regions containing function declaration in a python source.
![](/s/cache/a9/9b/a99b2d9458eebaa6387ad4bf399c5b6c.png)
+2
Oktay Acikalin 13 years ago
Starting to need that too :).
Customer support service by UserEcho