9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: yy <yiyu.jgl@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme multi-line tags (or maybe, efficient message stores)
Date: Wed, 12 Oct 2011 00:48:48 +0200	[thread overview]
Message-ID: <CADErNDtN2nO99rF+-T7Pw_gEMaNDw9Kh85mwdomGEHboJmVZ-w@mail.gmail.com> (raw)
In-Reply-To: <CADErNDteyKf_-RL8CispkPrRLWq72+9a2+dqNQqSE1x-BqJxXA@mail.gmail.com>

I have updated the acme version in contrib/yiyus. It includes some
other changes, but only this is relevant to this thread:

term% diff /sys/src/cmd/acme/exec.c exec.c
70a71
> 	{ L"e",		edit,		FALSE,	XXX,		XXX		},
148a150,156
> 	if(runestrncmp(r, L"|", 1) == 0 && q1-q0 == 1){
> 		Text tt;
> 		tt = *t;
> 		tt.file = argt->file;
> 		execute(&tt, argt->q0, argt->q1, FALSE, nil);
> 		return;
> 	}

The first change (new line 71) is to use a single "e" as an Edit
command, so you can always use the e in "Del" to do 2-1 chording with
Edit commands. The other change allows to execute any command using
2-1 chording on the pipe symbol.

There are many more tricks which you can use. For example, I have also
had scripts named as the letters of "Snarf" which I bind to bin before
running acme to build and test whatever I'm doing. The advantage of
this approach is that you don't even need to patch acme.

Yes, just hacky workarounds, but weren't multiline tags a hack too?


--
- yiyus || JGL .



  parent reply	other threads:[~2011-10-11 22:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-09 19:48 Lyndon Nerenberg (VE6BBM/VE7TFX)
2011-10-10  3:25 ` Paul Lalonde
2011-10-10  3:21   ` erik quanstrom
2011-10-10  4:07     ` Paul Lalonde
2011-10-10  7:22     ` dexen deVries
     [not found]     ` <CA+POUVhK4HHU8zbvFWaH5SVZJuVaP7+dkSK9UzEdjpqPbRkcxg@mail.gmail.c>
2011-10-10 21:36       ` erik quanstrom
2011-10-11  5:59         ` Peter A. Cejchan
2011-10-11  7:41           ` hiro
2011-10-11  8:09             ` yy
2011-10-11  8:15               ` Peter A. Cejchan
2011-10-11  8:56                 ` yy
2011-10-11  9:02                   ` Peter A. Cejchan
2011-10-11 22:48                   ` yy [this message]
2011-10-11 12:41               ` hiro

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=CADErNDtN2nO99rF+-T7Pw_gEMaNDw9Kh85mwdomGEHboJmVZ-w@mail.gmail.com \
    --to=yiyu.jgl@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).