> Does anyone know if it is possible to do the equivalent of Coda's
> (Panic Software) 'BlockEdit Selection' in BBEdit?
I'm not familiar with Coda's 'BlockEdit Selection' feature, but it
sounds similar to BBEdit's rectangular selections. Hold down the
Option key while dragging your cursor across some text (soft wrap must
also be disabled). You can then do all normal text operations on the
resulting rectangular selection. See page 91 of the user manual for
more information.
I often use rectangular selections with BBEdit's Text -> "Prefix/
Suffix Lines..." command to add/remove text across multiple, similar
lines all at once, like a list of variable declarations. It's a
powerful combination of features.
Hope this helps.
-Dennis
> I often use rectangular selections with BBEdit's Text -> "Prefix/
> Suffix Lines..." command to add/remove text across multiple, similar
> lines all at once, like a list of variable declarations. It's a
> powerful combination of features.
It very often eliminates the need for building a regex. I just forget
to do it. I forget about 90% of what BBEdit can do, and it's still
amazing.
--
Sent from my iPhone
You can apply Prefix/Suffix Lines at an arbitrary position as well.
Taking your example, just make a zero-width columnar selection by setting
the insertion point before "line", then Option-dragging straight down
through the desired range of lines.
----
Here is a |line of text
Here is a |line of text
Here is a |line of text
Here is a |line of text
A line of text that I'm not changing.
A line of text that I'm not changing.
----
where | shows the position of the column selection. (For a better
representation than my ASCII art :), please see "Working with Rectangular
Selections" in the PDF manual.)
Once you've got this selection, just apply Prefix/Suffix lines with "new ".
----
Here is a new line of text
Here is a new line of text
Here is a new line of text
Here is a new line of text
A line of text that I'm not changing.
A line of text that I'm not changing.
----
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048
>Prefix/Suffix does this for me at the start and end of selected text,
>but I wish to do this at any point within the text
>
>e.g.
>
>Here is a line of text
>Here is a line of text
>Here is a line of text
>Here is a line of text
>Here is a line of text
>
>I then want to 'blockedit' this so that I can insert the word 'new' on
>every line
>
>i.e.
>Here is a new line of text
>Here is a new line of text
>Here is a new line of text
>Here is a new line of text
>Here is a new line of text
Why not select the lines and then just do a find/replace of "a l" to
"a new l" with Selected Text Only checked?
--
Robert A. Rosenberg
RAR Programming Systems Ltd.
(845)-357-0931 - Home
(646)-479-1984 - Cell Phone
(646)-349-4025 - Fax