Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

Indented view #9

Closed thany closed 8 years ago

thany commented 9 years ago

Especially for javascript, it would be much nicer to have an indented view, so it's easier to see functions defined inside another function.

Hirse commented 9 years ago

This isn't really possible right now due to the way the extension detects the functions. Currently, every line is checked whether it contains a function. That way, the nesting level is lost unfortunately.


Feel free to submit a PR if you have a better idea though. :wink:

Florian-R commented 9 years ago

@Hirse What about using Esprima? Using the produced AST may be easier to use, but i don't know how it will perf.

thany commented 9 years ago

Brackets is built on top of V8, afaik. Couldn't you use just that?

Hirse commented 8 years ago

@Florian-R I did finally get around to use Esprima for parsing. :smile: :smile: