alibaba/structure-view

Arrows the only trigger for TagTree toggling?

gitarian opened this issue · 3 comments

Hi,

what do you think about making the arrows (maybe the symbol letters as well) the only trigger for node collapse/expansion?
Currently every "click for jump" collapses the respective node which is a bit cumbersome, especially when there are deeper structures along this very descendent path.

@gitarian Sorry for replying late.

In original Tree View of Atom, usually at left pane, select folder node and toggle collapse/expand event are all triggered by single click, so SV learnt from this at first.

But I do realize it is inappropriate that one action results in two changes as well as it's inconvenient sometimes, so I have changed single click to double for triggering tree change in my work.

Hi,
I have problems with my mail notifications, thus I'm late as well.

Double click would be ok. Initially, the tree should be fully expanded. Then I could use single click for structure navigation which is the major purpose of this package.

I‘m also behind my schedule (needed quite some time to read up and understand the import and export mechanisms in JavaScript in general and Atom/Node.js in particular). I hope to to make good progress my simple parser within the upcoming weeks.

v0.2.0 has been released, it should meet your expectation, just upgrade and try it 😄