origami.el icon indicating copy to clipboard operation
origami.el copied to clipboard

python: can't close a 2nd level node

Open cnglen opened this issue 7 years ago • 3 comments

In python mode, the 2nd level can't be closed alone. If I want to close the 2nd level node, its parent node will be closed.

See the attached file.

The add() can's be closed alone. If I want to close add(), the parent of add(), i.e, Sequential will be closed, as show in the 2nd attached file.

screenshot from 2017-03-23 09-00-28 screenshot from 2017-03-23 09-00-35

cnglen avatar Mar 23 '17 01:03 cnglen

Same problem here. Makes this pretty much useless for navigating large Python sources -- which was the point of trying it in the first place!

sawan avatar Mar 30 '17 06:03 sawan

I modified python-parser to support multi level folding tree. #64

Csomnia avatar Jan 24 '18 03:01 Csomnia

with imenu parsing from #69 python looks like this:

image

wbolster avatar Apr 13 '18 13:04 wbolster