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

Python support #44

Closed poof86 closed 9 years ago

poof86 commented 9 years ago

I've become dependent on this extension (it's great!), but now that I have to write something in python it seems outline list doesn't work 😞

Could you please add outline support for python too?

Thank you!

Hirse commented 9 years ago

I will see what I can do. In the meantime, it would be a great help if you could provide some samples of function definitions in python and a list of what you would expect to see in the outline in return.

poof86 commented 9 years ago

I'm quite new to python, just started a few days ago, but here are the keywords that I think the outliner should pick up:

def functionname(arguments):

class Classname(subclassname):
    def classfunction():
        #code

Python works with indentations to distinguish scope and doesn't use ';' to separate lines (weird right?). So it's just 'def' and 'class' for now I guess. If I bump into any other keywords I'll add them here

Hirse commented 9 years ago

I implemented it like this right now: outline-python Please test it by installing from URL if you like.