BIT-101 [2003-2017]

PrimalScript 4.0 Info


I’ve been given unofficial permission to share some stuff from the next version of PrimalScript, due out in August I believe. So, over the next few weeks or months, I’ll be dropping little tidbits here and there.

The first feature I wanted to give you a quick peak at is code folding. This is the one thing I sorely missed in PrimalScript. Here you can see that classes and functions are automatically foldable:

You can click on the markers to fold and unfold, and there are user configurable keyboard shortcuts to fold/unfold the current block, or fold/unfold all:

But wait! It gets better. You can even define a region to fold:

And that folds right up in the same way:

What’s more, all of these types of folds and their open/closed state are saves as metadata in the file, so the next time you open it, the same blocks are in the state you left them.

There’s another type of temporary fold. Just highlight any block of code, and you’ll see it is made foldable:

If you don’t fold it, the markers go away as soon as you select something else. If you do fold it, that block will be foldable as long as the file remains open. These types of folds are not permanent and do not get saved with the file however.

I love this feature. The ability to hide the stuff you aren’t working on makes working with large files much more manageable.

There are plenty of other features I’m going to enjoy telling you about. But that’s all for today!

« Previous Post
Next Post »