Re: twiddle (was Writer's Question)

From: Louis Pouzin (pouzin@EMAIL.ENST.FR)
Date: Tue Jan 16 2001 - 00:49:30 AEDT


On Thu, 11 Jan 2001 10:52:44 +0000, Jason Davies wrote:

>BBedit used to call this 'twiddle' I think but it has become 'exchange characters' which is more boring...

>I've been meaning to write this macro for ages...can you send it to me offlist?

Hi Jason,

As a BBEdit user, I missed "twiddle". The NW macro I wrote does all sorts of twiddlings, as the write-up says. If you are interested, mail me off-list.

Cheers
- -
Modeled after BBEdit 'twiddle'
Suggested shortcut: cmd ` (as in BBEdit)
Selections may be contiguous or not. Word boundaries as per NW rules
3 words: A B C -> C B A
2 words: A B -> B A
2 or 3 character strings: swap 1st and last string
1 word or a character string: swap 1st and last character
No selection: swap characters adjacent to the cursor
1 character or > 3 words: do nothing
Tested OK with NW 4.1.6.
NW 5.1.2 goes berserk when non contiguous selections addresses are in decreasing order



This archive was generated by hypermail 2b29 : Thu Jan 18 2001 - 23:01:54 AEDT