<p></p>
<p>I just read a couple articles about folding in <a href="https://www.scintilla.org/ScintillaDoc.html" rel="nofollow">https://www.scintilla.org/ScintillaDoc.html</a>, in particular <a href="https://www.scintilla.org/Lexer.txt" rel="nofollow">https://www.scintilla.org/Lexer.txt</a>,  and I see that my notion of "level" in the 1st comment agrees "fold level" scintilla and lexers uses internally to give each line.<br>
So then the command  to move to parent of comment node could be stated as:</p>
<ul>
<li><strong>C1</strong>: Find Ist line above current line, that has a fold level smaller than of current line, and is a fold point. If exists, move cursor there.</li>
</ul>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/intact/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/intact">@intact</a> In the initial version of the post I suggested a command that combined moving to parent node and folding that, and an opposite command that unfolds a parent node and moves to Ist child node. But for modularity, perhaps better/simpler to implement just the main missing part, C1, and then the combined ones could be made from C1, existing toggle and moving with keyes, with macros or other ways, I guess.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2920#issuecomment-939128165">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5CXWZDX5PIGY74W6TUF5PVLANCNFSM5FSQEJ4A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ75G4774JR6NDQJKC3UF5PVLA5CNFSM5FSQEJ4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG747KZI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2920#issuecomment-939128165",
"url": "https://github.com/geany/geany/issues/2920#issuecomment-939128165",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>