From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Mathieu Lonjaret Date: Wed, 15 Apr 2015 17:44:07 +0200 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=20cf301afaf7dfacd70513c538d9 Subject: Re: [9fans] easier refreshing of acme wins Topicbox-Message-UUID: 4d45c3b8-ead9-11e9-9d60-3106f5b1d025 --20cf301afaf7dfacd70513c538d9 Content-Type: text/plain; charset=UTF-8 I followed yiyus suggestion and ended up using ".go" as an alias for Get. I expect it's going to work nicely. the change is trivial: diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c index 6fe423a..5c55e21 100644 --- a/src/cmd/acme/exec.c +++ b/src/cmd/acme/exec.c @@ -75,6 +75,7 @@ static Rune LEdit[] = { 'E', 'd', 'i', 't', 0 }; static Rune LExit[] = { 'E', 'x', 'i', 't', 0 }; static Rune LFont[] = { 'F', 'o', 'n', 't', 0 }; static Rune LGet[] = { 'G', 'e', 't', 0 }; +static Rune LRefreshGo[] = { '.', 'g', 'o', 0 }; static Rune LID[] = { 'I', 'D', 0 }; static Rune LIncl[] = { 'I', 'n', 'c', 'l', 0 }; static Rune LIndent[] = { 'I', 'n', 'd', 'e', 'n', 't', 0 }; @@ -106,6 +107,7 @@ Exectab exectab[] = { { LExit, xexit, FALSE, XXX, XXX }, { LFont, fontx, FALSE, XXX, XXX }, { LGet, get, FALSE, TRUE, XXX }, + { LRefreshGo, get, FALSE, TRUE, XXX }, { LID, id, FALSE, XXX, XXX }, { LIncl, incl, FALSE, XXX, XXX }, { LIndent, indent, FALSE, XXX, XXX }, On 9 April 2015 at 15:28, Mathieu Lonjaret wrote: > ah, good idea. thanks! > > > On 9 April 2015 at 10:02, yy wrote: > > On 26 March 2015 at 17:02, Mathieu Lonjaret > wrote: > >> However, I find it a bit tedious that I have to write (or paste) > >> myself the Get tag for each of the wins I want to refresh. To the > >> point that I'm thinking of hardcoding the Get tag as one of the > >> "permanent" tags for a win. > > > > One easy solution is to use as command something you already have in > > the tag bar. I have used '|' as Edit (I think the patch is my contrib, > > but I'm not sure), you may use it as Get. Or, since it looks like we > > are talking about go files, you could use 'g' or 'o', which will > > always be there. > > > > It is not ideal, but it is something you can do in 5 minutes. > > > > > > -- > > - yiyus || JGL . > > > --20cf301afaf7dfacd70513c538d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I followed yiyus suggestion and ended up using ".go&q= uot; as an alias for Get. I expect it's going to work nicely.

<= /div>
the change is trivial:

diff --git a= /src/cmd/acme/exec.c b/src/cmd/acme/exec.c
index 6fe423a..5c55e21= 100644
--- a/src/cmd/acme/exec.c
+++ b/src/cmd/acme/ex= ec.c
@@ -75,6 +75,7 @@ static Rune LEdit[] =3D { 'E', = 9;d', 'i', 't', 0 };
=C2=A0static Rune LExit[= ] =3D { 'E', 'x', 'i', 't', 0 };
= =C2=A0static Rune LFont[] =3D { 'F', 'o', 'n', '= ;t', 0 };
=C2=A0static Rune LGet[] =3D { 'G', 'e&= #39;, 't', 0 };
+static Rune LRefreshGo[] =3D { '.= 9;, 'g', 'o', 0 };
=C2=A0static Rune LID[] =3D { = 'I', 'D', 0 };
=C2=A0static Rune LIncl[] =3D { &#= 39;I', 'n', 'c', 'l', 0 };
=C2=A0stat= ic Rune LIndent[] =3D { 'I', 'n', 'd', 'e',= 'n', 't', 0 };
@@ -106,6 +107,7 @@ Exectab exect= ab[] =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { LExit, =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xexit, =C2=A0FALSE, =C2=A0XXX, =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0XXX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 { LFont, =C2=A0 =C2=A0 =C2= =A0 =C2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=A0 =C2=A0indent, FALSE, =C2=A0XXX, =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0XXX =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 },


On 9 April 2015 at 15:28, Mathieu Lonjaret <mathieu.lonjaret@g= mail.com> wrote:
ah, good= idea. thanks!


On 9 April 2015 at 10:02, yy <yiyu= .jgl@gmail.com> wrote:
> On 26 March 2015 at 17:02, Mathieu Lonjaret <mathieu.lonjaret@gmail.com> wrote:
>> However, I find it a bit tedious that I have to write (or paste) >> myself the Get tag for each of the wins I want to refresh. To the<= br> >> point that I'm thinking of hardcoding the Get tag as one of th= e
>> "permanent" tags for a win.
>
> One easy solution is to use as command something you already have in > the tag bar. I have used '|' as Edit (I think the patch is my = contrib,
> but I'm not sure), you may use it as Get. Or, since it looks like = we
> are talking about go files, you could use 'g' or 'o', = which will
> always be there.
>
> It is not ideal, but it is something you can do in 5 minutes.
>
>
> --
> - yiyus || JGL .
>

--20cf301afaf7dfacd70513c538d9--