9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Replace text in acme window with the plumber
@ 2009-11-26 12:34 Matthias Teege
  2009-11-26 13:31 ` Anthony Sorace
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Teege @ 2009-11-26 12:34 UTC (permalink / raw)
  To: 9fans

Moin,

occasionally I use textmacros in acme to save typing. I use something like
_TMACRO. Its easy to catch this with a plumber rule and right click. It
is easy to replace all macros in the whole file with its expansions. It
is also easy to use '< expander _TMACRO' but it would be nice if I can
expand only the macro i (b3) clicked on.

I have a plumbing rule and an rc script which output the expansion in
a new window. It is possible to make the expansion "in place"?

Many thanks
Matthias




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

* Re: [9fans] Replace text in acme window with the plumber
  2009-11-26 12:34 [9fans] Replace text in acme window with the plumber Matthias Teege
@ 2009-11-26 13:31 ` Anthony Sorace
  2009-11-26 15:51   ` Gorka Guardiola
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Sorace @ 2009-11-26 13:31 UTC (permalink / raw)
  To: 9fans

i think the easiest way to do this is to keep "|expander" in
your acme tag, highlight (b1 sweep) the _TMACRO you'd
like to expand, and b2 click |expander.

pushing things through plumber means expander won't
have the window context. you might be able to mount
acme's exported namespace and figure it out, but it'd be
a lot of work for no obvious reason.



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

* Re: [9fans] Replace text in acme window with the plumber
  2009-11-26 13:31 ` Anthony Sorace
@ 2009-11-26 15:51   ` Gorka Guardiola
  0 siblings, 0 replies; 3+ messages in thread
From: Gorka Guardiola @ 2009-11-26 15:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thu, Nov 26, 2009 at 1:31 PM, Anthony Sorace
> a lot of work for no obvious reason.
>
>

Not moving the pointer would be a reason...


--
- curiosity sKilled the cat



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

end of thread, other threads:[~2009-11-26 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-26 12:34 [9fans] Replace text in acme window with the plumber Matthias Teege
2009-11-26 13:31 ` Anthony Sorace
2009-11-26 15:51   ` Gorka Guardiola

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).