Sublime Forum

[Feature] Enhancements to "Goto Symbol"

#1

There are a few enhancements I’d like to see in Goto Symbol.

Firstly, it works great right now in CSS files, since it looks at all selectors, and includes comments.
I think the same should work in other languages, notably HTML, for which it doesn’t look at classes, only at IDs, which isn’t as good.
It should also add comments in other languages, like Python, etc.

Secondly, it would help a lot if it would show which functions belong to which object. For example, hitting ctrl+r in a JS file will show a flat listing of all functions, which is often very confusing.
In Python files, on the other hand, methods belonging to a class will have an indent, which shows they belong.
I’d like the same to happen with Javascript, since “mock objects” are often made there (i.e. this.myFunc = function()…).
The easiest solution would just be to inherit the padding that the row has in the original file. This would work great for HTML files as well, since you’ll be able to see all the relationships between elements.

Whaddya guys think?

0 Likes

#2

Please!!! :wink:

0 Likes