From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 27 Oct 2014 20:29:59 +0300 From: Kostarev Ilya To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="544e8117_75ae9a57_134" Subject: Re: [9fans] [acme] Edit command -- More than one argument? Topicbox-Message-UUID: 20fab1ba-ead9-11e9-9d60-3106f5b1d025 --544e8117_75ae9a57_134 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline At least p9p acme has multiline tags. Personally, I prefer 2-1 chord com= plicated or frequent stuff onto Edit command --=C2=A0 Kostarev Ilya On 27 Oct 2014 at 18:48:10, Ingo Krabbe (ikrabbe.ask=40gmail.com) wrote: but you can't do this on a acme headline. So how would you apply such mul= tiline commands to a range you marked in the buffer=3F =20 > Edit =7B =20 > s/=5E/=5C=5B/ =20 > s/=5C:=5C /=5C=5D/ =20 > =7D =20 > =20 > =20 > On Mon, Oct 27, 2014 at 8:28 AM, Eduardo Alvarez =20 > wrote: =20 > =20 >> Hello, everyone, =20 >> =20 >> I'm in the process of learning acme via Russ Cox's p9p port. Recently,= I =20 >> found =20 >> myself editing some text to use with markdown, and needed to make more= =20 >> than one =20 >> modification to a list. I wanted to know if it's possible to give the = Edit =20 >> command more than one argument. =46or example, I found myself needing = to =20 >> replace =20 >> colons with a close bracket (=5D), and inserting an open bracket at th= e =20 >> beginning =20 >> of the line. So I did this: =20 >> =20 >> Edit s/=5E/=5C=5B/ =20 >> Edit s/=5C:=5C /=5C=5D/ =20 >> =20 >> And I was hoping to combine these into a single line, so, for example:= =20 >> =20 >> Edit s/=5E/=5C=5B/ s/=5C:=5C /=5C=5D/ =20 >> (Not sure if escaping was necessary, but I was playing it safe) =20 >> =20 >> Doing exactly what I did above resulted in the error =20 >> =20 >> =22Edit: newline expected (saw f)=22 =20 >> =20 >> So that's obviously not it. But I'm not sure if it's at all possible. = =20 >> =20 >> Thank you in advance. =20 >> -- =20 >> Eduardo Alvarez =20 >> =20 >> =22Stercus, Stercus, Stercus, moriturus sum=22 =20 >> -- Rincewind The Wizzard =20 >> =20 --544e8117_75ae9a57_134 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline