From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <6C4DE0B7-6B44-4ABD-83A4-44E72A300DC0@gmail.com> <83109255370bf46152ae8d1bb04a463f@chula.quanstro.net> <396284eb18c16a071ce649b5e2370e4a@brasstown.quanstro.net> Date: Wed, 12 Oct 2011 00:48:48 +0200 Message-ID: From: yy To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] acme multi-line tags (or maybe, efficient message stores) Topicbox-Message-UUID: 36cb5578-ead7-11e9-9d60-3106f5b1d025 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 .