Shougo / unite-outline

outline source for unite.vim
http://d.hatena.ne.jp/h1mesuke/20101107/p1
152 stars 41 forks source link

add outline to python #82

Closed fab6 closed 6 years ago

fab6 commented 6 years ago

Hi,

could you point me to documentation or give me a hint how to add new outline "keywords"? E.g. within Python, I would like to jump to certain comments. The comments would start like this:

- SEC:Tst

and the outline could show it like: SEC:Tst Does this work? Thanks!

Shougo commented 6 years ago

You can see the other implementation.

https://github.com/Shougo/unite-outline/tree/master/autoload/unite/sources/outline/defaults

Shougo commented 6 years ago

And Python support is already implemented. https://github.com/Shougo/unite-outline/blob/master/autoload/unite/sources/outline/defaults/python.vim

fab6 commented 6 years ago

Hi, ok, I saw the python implementation, but I understood, that this mainly looks for def and class and could not figure out how to adjust it for the above example... I will look again. Thanks!

Shougo commented 6 years ago

Hi, ok, I saw the python implementation, but I understood, that this mainly looks for def and class and could not figure out how to adjust it for the above example... I will look again. Thanks!

Yes. But you can extend it.

fab6 commented 6 years ago

You are right, I will look into the other as well and look if I understand it.