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 <[email protected]>
wrote:
> ah, good idea. thanks!
>
>
> On 9 April 2015 at 10:02, yy <[email protected]> wrote:
> > On 26 March 2015 at 17:02, Mathieu Lonjaret <[email protected]>
> 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 .
> >
>