02-Dec-2007 16:36
Regular Expressions
We all do - they can make complex tasks trivial to do, e.g. search and replace, swapping of columns.
Unfortunately they tend to be cryptic and read-only for anything other than the most trivial of things.
CRiSP supports three flavors of regexp - the original BRIEF version, Unix style, and Perl style.
Perl regexps are very powerful - too powerful. Perl 6 is introducing sophisticated parser based regexps which allow you to do things regexps could never do before.
But a one liner becomes a program, with loss of readability.
I am not knocking them - I am jealous, and maybe CRiSP will adopt them too in the fulness of time, but, where a regexp ends, a macro begins.
02-Dec-2007 16:33
Virtualisation
01-Dec-2007 10:04
Editor War
CRiSP is a powerful editor - it has so many features, from the simple to the obscure. Each feature was created with a goal in mind - either a request from someone, or a desire to fix a specific problem.
CRiSP's grep feature where you can select specific lines in a single file or all files, and then filter them down to just the set you require is predicated on the unix command line and pipes - where you can start by using a simple grep, and pipe into another grep to reduce the selection to what you want.
You can activate this in CRiSP by using the "<F10>grep" command and once you are in a popup window, use <Alt-F> to invoke a "Filter:" prompt and start to cull the selection.
A feature so powerful, that many people may not understand it, until you try it.