On Jun 6, 10:04 pm, Stephen Hoffman <seaoh...@hoffmanlabs.invalid>
wrote:
> On 2013-06-07 01:21:52 +0000, AEF said:
Hi Hoff!
>
> > Bummer. It's hard to beat EDT for Find and Find Next.
>
> vim or other editors provide rather more than EDT.
What I meant was the design of what keys, where they are, and what
keys start the Find operation, go to the next occurrence, and change
direction. I don't want to press Esc, N and shift-N and / and ?; I
want to press PF1, PF3, and 4 and 5. I elaborate on this below.
>
> case-sensitive search:
> /target for the search, and then n or N for the next or previous matches.
> ?target and n or N
You can use Eve with the EDT keypad to do this, I believe.
>
> case-blind search:
> /target\c and n or N
> ?target\c and n or N
Can be done with EVE with the EDT keypad, no?
>
> * and # search for the next and previous instances of the word at the
> cursor, too, then n or N to continue the search.
There's an EDT macro I got from someone c. 1992 that can do this!
Actually, it takes what's in the paste buffer and puts it in the
search buffer.
>
> The :set [no]smartcase and :set [no]ignorecase stuff can be used in
> place of \c or \C in the pattern string, depending on what you're up to.
>
> Oh, and vim does pattern searches. (That's available in LSEDIT, but
> not in EDT.)
>
> --
> Pure Personal Opinion | HoffmanLabs LLC
Sorry, what I meant was the keys used and how they're used, not
wildcard/pattern searches and what not. With Eve you can do case-
sensitive stuff and VMSwildcards, no? And with the EDT Keypad, no
less!
Yes, vi, vim, can do all that fancy stuff, but it's where the keys
are, and the ability to switch direction to forward with 4, backward
with 5, and find PF1 PF3, and Find Next PF3, that I find awesome.
You can change direction to forward with one key, and backward with
another. After which you simply repeat pressing F3 to find what you
want. If you overshoot, press 4 or 5 as needed and you're back to a
single key to jump to the next occurrence in the opposite direction.
You don't have to hold any key down while pressing another. You can
very easily move your hand from main keyboard to keypad and back. It's
easier on the hand and wrist the EDT way than it is the vi/vim way.
For me, using PF3 is much better than n. And no need to press the ESC
key.
IOW, if I were to design the thing, I'd use the EDT keypad method, but
add all those cool features from vim/Eve. Well, it's already done for
Eve!
Sorry I wasn't clear before.
Another thing from EDT is that you can press SELECT, type something,
then cut and paste it, perhaps pasting it multiple times. Can you do
that with vi? I don't really know. Can you do that with any other
editor? (Oh, EVE can do it.)
Another thing vi can't do is skip correctly across things like IP
addresses. EDT can do it, but you have to customize it.
10.1.10.123
Pressing a word-advance key should stop at each period ONLY ONCE,
either just before it or right after it. But most editors/CLIs/
browsers will stop twice. I suppose that's to avoid an overshoot. But
that's silly and painfully slow. You have to press the word-advance
key or key combo many more times. If you overshoot, just press the
arrow key once! This is a big deal? It makes up for all the extra key
presses you made to get past each punctuation mark. You end up with
fewer key presses my way. It's more efficient. Firefox also gets it
right, and right out of the box, to boot! EDT can do it but it needs
some set-up. I don't know of any other editor or CLI or browser that
gets this right.
vi puts the found search string on the top row. I prefer that there be
a few rows above it for context, like EDT and EVE do. Well, there are
advantages either way.
AEF