[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Programming request: delete to next X
- Subject: Re: Programming request: delete to next X
- From: Robert Holmgren holmgren@xxxxxxxx
- Date: Sun, 21 Jul 2002 14:11:02 -0400
** Reply to message from Wolfgang Bechstein on Sun,
21 Jul 2002 21:07:42 +1000
Wolfgang:
"Delete to next occurrence of [characters]" has existed in U2 since the
beginning of time: frame DEFTO$. Put it on a key:
nn=NOJM2,.,d,e,f,t,o,$,Q2
It's more versatile than your proposal. Instead of "Delete to next $", it is
"DeFine to next $", and then, depending on what key you hit to execute it, it
does one of four things. DEFTO$ first puts a SEarch command on the CMline, for
you to enter sought text in. Suppose you want to select the first sentence in
this paragraph ("It's more versatile..."). Put your cursor on top of the
capital I. Command "defto$". If you entered just "l" in the search
$tring, it would define up to the "l" in "versatile", whereas you want the
"l"
in "proposal" -- so you enter something more verbose, like "posal. " That will
select the entire sentence, as well as the two spaces after it. Now you execute
(four choices):
hit XC [Enter|F9] to simply DeFine the indicated $tring (the whole sentence
plus 2 spaces)
hit a CursorLeft arrow to DeFine from current cursor position up to but not
including the *first char* of the sought $tring
hit a Delete key to delete the entire sentence plus 2 spaces (this is what
you want)
hit Escape to abort
Check it out.
-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------