Page 1 of 1
Command to jump between begin/end fold points?
Posted: Sun Jul 10, 2022 9:28 pm
by CBruce
Is there a command/hotkey to jump between beginning/ending fold points ... the same way that the brackets plugin lets you jump between matching brackets?
I'm looking at FreeBASIC, so the fold points are keywords, not brackets.
Thanks,
CBruce
Posted: Mon Jul 11, 2022 12:40 am
by CBruce
Laughing at myself !!!
If I right-click on a fold point in the CodeFold Panel ... its popup menu has selections for "Go to Begin" and "Go to End".
I would still like to be able to switch between begin/end from the current "fold" keyword that I have selected in the main edit window ... but at least the CodeFold Panel popup works!
CBruce
Posted: Mon Jul 11, 2022 2:19 am
by dothen
Menu->Plugins->Programming->Settings...->CodeFold2
You can make a button or a menu.
Code: Select all
Call("Coder::CodeFold::CurrentCollapse")
Call("Coder::CodeFold::CurrentGoBegin")
Call("Coder::CodeFold::CurrentGoEnd")
Call("Coder::CodeFold::CurrentSelect")
Call("Coder::CodeFold::AllCollapse")
Call("Coder::CodeFold::AllNextLevel")
Call("Coder::CodeFold::AllPrevLevel")
Call("Coder::CodeFold::FindRootLevel")
The functions will not work if a hotkey is not assigned.
Posted: Mon Jul 11, 2022 9:02 pm
by CBruce
Thanks, dothen! Exactly what I was looking for!