A few more thoughts:
a) C1/C2 (Moving to parent node, or child node ), whether or not provided separately from CO1/2, should ideally place the cursor at a regular position in the line ( I guess either Ist non-white space char, or the last one).
b) CO1 and CO2, (moving to parent/child + fold/unfold) , to be useful for repeated manual invocation, probably need to be based not on "toggle current fold" but "fold current node (line)" and "unfold current node (line)", each with no effect if line is not a folding point.
c) C3, C4 ( parallel folding, and unfolding, of all nodes in the file, of same level as current node ) should also be based on "fold current node (line)" and "unfold current node (line)" , instead of "toggle current fold", to ensure the invocation, each tree will be folded or unfolded to the same depth, regardless of the initial state (folded or not) of particular nodes in those trees.
These C3 and C4 could be stanalone, or (perhaps even better ) be based on CO1 and CO2, via an added switch.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.