Command to jump between begin/end fold points?

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 32
Joined: Thu Oct 15, 2015 2:20 am

Command to jump between begin/end fold points?

Post 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

Offline
Posts: 32
Joined: Thu Oct 15, 2015 2:20 am

Post 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

Offline
Posts: 49
Joined: Thu May 05, 2022 5:38 am

Post 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.

Offline
Posts: 32
Joined: Thu Oct 15, 2015 2:20 am

Post by CBruce »

Thanks, dothen! Exactly what I was looking for!
Post Reply