9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] [acme] Edit command -- More than one argument?
@ 2014-10-27 16:41 sl
  2014-10-27 22:54 ` Rob Pike
  0 siblings, 1 reply; 17+ messages in thread
From: sl @ 2014-10-27 16:41 UTC (permalink / raw)
  To: 9fans

> Yes you can. That's how I verified this works. Open up the tag to
> multiple lines (just type newline in the tag).

I think this only works in p9p.

sl



^ permalink raw reply	[flat|nested] 17+ messages in thread
* [9fans] [acme] Edit command -- More than one argument?
@ 2014-10-27 15:28 Eduardo Alvarez
  2014-10-27 15:34 ` Rob Pike
  0 siblings, 1 reply; 17+ messages in thread
From: Eduardo Alvarez @ 2014-10-27 15:28 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hello, everyone,

I'm in the process of learning acme via Russ Cox's p9p port. Recently, I found
myself editing some text to use with markdown, and needed to make more than one
modification to a list. I wanted to know if it's possible to give the Edit
command more than one argument. For example, I found myself needing to replace
colons with a close bracket (]), and inserting an open bracket at the beginning
of the line. So I did this:

Edit s/^/\[/
Edit s/\:\ /\]/

And I was hoping to combine these into a single line, so, for example:

Edit s/^/\[/ s/\:\ /\]/
(Not sure if escaping was necessary, but I was playing it safe)

Doing exactly what I did above resulted in the error 

"Edit: newline expected (saw f)"

So that's obviously not it. But I'm not sure if it's at all possible.

Thank you in advance.
-- 
Eduardo Alvarez

"Stercus, Stercus, Stercus, moriturus sum"
  -- Rincewind The Wizzard

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2014-10-28 23:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-27 16:41 [9fans] [acme] Edit command -- More than one argument? sl
2014-10-27 22:54 ` Rob Pike
2014-10-27 23:39   ` Paul Lalonde
2014-10-28  3:41     ` erik quanstrom
2014-10-28  3:49       ` Paul Lalonde
2014-10-28 22:51         ` erik quanstrom
2014-10-28 23:08           ` Paul Lalonde
2014-10-28 23:47             ` erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2014-10-27 15:28 Eduardo Alvarez
2014-10-27 15:34 ` Rob Pike
2014-10-27 15:46   ` Ingo Krabbe
2014-10-27 17:09     ` Rob Pike
2014-10-27 17:15       ` lucio
2014-10-27 17:33       ` Ingo Krabbe
2014-10-27 17:33       ` Eduardo Alvarez
2014-10-27 17:35       ` Skip Tavakkolian
2014-10-27 17:29     ` Kostarev Ilya

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