9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] easier refreshing of acme wins
Date: Wed, 15 Apr 2015 17:44:07 +0200	[thread overview]
Message-ID: <CAHcDtn=Yhmwp98+Z13hOTmLXDxQa-JUeKjOqJ0AJro6PFQXM9w@mail.gmail.com> (raw)
In-Reply-To: <CAHcDtnmTG_Ez0q8pW-kgQv_O15NVhhN8QtbJrUXSrEHzubfnXg@mail.gmail.com>

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

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 <mathieu.lonjaret@gmail.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
> >> 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 .
> >
>

[-- Attachment #2: Type: text/html, Size: 3554 bytes --]

      reply	other threads:[~2015-04-15 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 16:02 Mathieu Lonjaret
2015-03-26 16:34 ` Bakul Shah
2015-03-26 18:49   ` Paul Lalonde
2015-03-26 22:05     ` Bakul Shah
2015-03-28  7:19       ` Aram Santogidis
2015-04-03 13:16         ` Mathieu Lonjaret
2015-04-03 16:24           ` Skip Tavakkolian
2015-04-08 15:24             ` Mathieu Lonjaret
2015-04-09  8:02 ` yy
2015-04-09 13:28   ` Mathieu Lonjaret
2015-04-15 15:44     ` Mathieu Lonjaret [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHcDtn=Yhmwp98+Z13hOTmLXDxQa-JUeKjOqJ0AJro6PFQXM9w@mail.gmail.com' \
    --to=mathieu.lonjaret@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).