From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Fri, 29 Mar 2013 01:19:38 +0000 From: phineas.pett@gmail.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Acme Edit scriptlets Topicbox-Message-UUID: 38a57cd8-ead8-11e9-9d60-3106f5b1d025 > Hi! >=20 > I did a quick writeup on little Edit scripts > (well basicly sam(1) scripts) > If anyone have more feel free to contribute. > Maybe someone could put them on the wiki even. Nice idea... Here's a simple awk bit I use in Acme for centering text (its name is the center-line rune: =E2=84=84) #!/bin/rc # Center text awk '{l=3Dlength();s=3Dint((70-l)/2); printf "%"(s+l)"s\n",$0}' It doesn't seem to be common practice, but I like to name editing commands with unicode runes to save room: i.e. =E2=86=90 and =E2=86=92 f= or indentation (used with code), or =E2=87=90 and =E2=87=92 for indentation = + a reformat (used for natural language next). I find they serve a bit like icons.