9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme cut/paste chords
@ 2006-02-06 23:41 Eoghan Sherry
  2006-02-07  1:07 ` Sam Hopkins
  2006-02-10 19:25 ` rog
  0 siblings, 2 replies; 6+ messages in thread
From: Eoghan Sherry @ 2006-02-06 23:41 UTC (permalink / raw)
  To: 9fans

greetings 9fans,

i've been working on the cut/paste chords in acme (1down 2click 3click
doesn't work in tags in the plan9port version) and have discovered an
oddity. performing 1d 2c 3c in a body results in a cut followed
by an undo, thus preventing the body from being marked as dirty. similarly,
performing a 1d 3c 2c results in a paste followed by an undo. however,
the inverse of pasting over selected text is not a cut; it is restoration
of the original text. this seems inconsistent with the basic cut chord (1d 2c)
and i'd like to change the meaning of 1d 3c 2c to be a paste followed by a cut.

i realize this is a minor point (has anyone ever used a 1d 3c 2c chord?), but
does anyone have an opinion on the matter?

eoghan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] acme cut/paste chords
  2006-02-06 23:41 [9fans] acme cut/paste chords Eoghan Sherry
@ 2006-02-07  1:07 ` Sam Hopkins
  2006-02-07  1:20   ` Paul Lalonde
  2006-02-10 19:25 ` rog
  1 sibling, 1 reply; 6+ messages in thread
From: Sam Hopkins @ 2006-02-07  1:07 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> i realize this is a minor point (has anyone ever used a 1d 3c 2c chord?), but
> does anyone have an opinion on the matter?

Your oddities are my helpful mechanisms.

Sam


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] acme cut/paste chords
  2006-02-07  1:07 ` Sam Hopkins
@ 2006-02-07  1:20   ` Paul Lalonde
  2006-02-07  1:28     ` Russ Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Lalonde @ 2006-02-07  1:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Care to describe the work habit?  I'm not a 1-3-2 user; maybe I  
should be :-)

Paul

On 6-Feb-06, at 5:07 PM, Sam Hopkins wrote:

>> i realize this is a minor point (has anyone ever used a 1d 3c 2c  
>> chord?), but
>> does anyone have an opinion on the matter?
>
> Your oddities are my helpful mechanisms.
>
> Sam

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFD5/XxpJeHo/Fbu1wRAtACAJ9EZDaJC+edv8j3c905SFKXqqYX6ACdHnoe
KvarILMGSGPyUA8JNv9d4h8=
=zSzq
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] acme cut/paste chords
  2006-02-07  1:20   ` Paul Lalonde
@ 2006-02-07  1:28     ` Russ Cox
  2006-02-07 20:37       ` Eoghan Sherry
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2006-02-07  1:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> Care to describe the work habit?  I'm not a 1-3-2 user; maybe I
> should be :-)

I use 1-3-2 when I accidentally 1-3.  It's undo,
just like 1-2-3 is undo.

The fact that undo for 1-3-2 is broken in tags 
doesn't mean that it should be broken in the bodies.

Russ


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] acme cut/paste chords
  2006-02-07  1:28     ` Russ Cox
@ 2006-02-07 20:37       ` Eoghan Sherry
  0 siblings, 0 replies; 6+ messages in thread
From: Eoghan Sherry @ 2006-02-07 20:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

thanks for the responses.

my motivation was to make 1-3-2 in bodies consistent with
tags and rio behaviour. given that some rely on the undo
behaviour, i'll look at extending it to tags.

eoghan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] acme cut/paste chords
  2006-02-06 23:41 [9fans] acme cut/paste chords Eoghan Sherry
  2006-02-07  1:07 ` Sam Hopkins
@ 2006-02-10 19:25 ` rog
  1 sibling, 0 replies; 6+ messages in thread
From: rog @ 2006-02-10 19:25 UTC (permalink / raw)
  To: 9fans

> my motivation was to make 1-3-2 in bodies consistent with
> tags and rio behaviour. given that some rely on the undo
> behaviour, i'll look at extending it to tags.

better would be the other way around (make rio more
like acme). it's quite deliberate that the two chords are
inverses. from the man page:

          Several operations are bound to multiple-button actions.
          After selecting text, with button 1 still down, pressing
          button 2 executes Cut and button 3 executes Paste.  After
          clicking one button, the other undoes the first; thus (while
          holding down button 1) 2 followed by 3 is a Snarf that
          leaves the file undirtied; 3 followed by 2 is a no-op.

mind you, there is still some odd behaviour in there that i've been
unable to reproduce consistently - trying this out, several times i
managed to get to a situation where the file was changed within acme,
but an Undo wouldn't get me out of it.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-10 19:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 23:41 [9fans] acme cut/paste chords Eoghan Sherry
2006-02-07  1:07 ` Sam Hopkins
2006-02-07  1:20   ` Paul Lalonde
2006-02-07  1:28     ` Russ Cox
2006-02-07 20:37       ` Eoghan Sherry
2006-02-10 19:25 ` rog

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).