I took the template.awk script from werc[0] and use it in acme all the
time. I've a collection of template files beginning with
Edit ,|tpl
% var1=val1
% var2=val2
...
I can execute line 1 to generate stuff like Makefiles, man pages, puppet
manifests, etc.[1]
[0]: http://hg.cat-v.
whoa. nice job.
2013/4/4 erik quanstrom
> On Thu Apr 4 08:17:13 EDT 2013, beg...@gmail.com wrote:
>
> > Cool.
> >
> >
> > Here's a script i use to generate case
> > insensitive regexes. It turns
> >
> > FooBar
> >
> > into
> >
> > [Ff][Oo][Oo][Bb][Aa][Rr]
>
> see also rune(1), http://9atom.or
On Thu Apr 4 08:17:13 EDT 2013, beg...@gmail.com wrote:
> Cool.
>
>
> Here's a script i use to generate case
> insensitive regexes. It turns
>
> FooBar
>
> into
>
> [Ff][Oo][Oo][Bb][Aa][Rr]
see also rune(1), http://9atom.org/magic/man2html/1/rune
which generalizes this idea to all of unicod
Cool.
Here's a script i use to generate case
insensitive regexes. It turns
FooBar
into
[Ff][Oo][Oo][Bb][Aa][Rr]
term% cat /bin/uncase
#!/bin/rc
exec awk '{
lower = tolower($0)
upper = toupper($0)
len = length($0)
for( i = 1 ; i <= len ; i++ )
printf "[" substr(upper, i, 1) substr(lower, i,
On Thursday 04 of April 2013 10:19:23 Mark van Atten wrote:
> On Friday, 29 March 2013 01:38:06 UTC+1, Bence Fábián wrote:
> > I did a quick writeup on little Edit scripts
(p9p specific)
attached is my dirty hack for automagic grepping of $% file or recursively %s
dir or pipe.
a funky goodie:
On Friday, 29 March 2013 01:38:06 UTC+1, Bence Fábián wrote:
> I did a quick writeup on little Edit scripts
Many thanks, this thread is very useful.
There is also Jason Catena's list of Edit idioms at
https://raw.github.com/catenate/acme-fonts/master/test/1/acme/Edit/sam
When editing and re-ed
this also works:
# indent
Edit ,x/^./ y/./ c/ /
# outdent
Edit ,x/^ / c//
-Skip
On Fri, Mar 29, 2013 at 2:50 AM, Richard Miller <9f...@hamnavoe.com> wrote:
>> # increase TAB indentation of selection
>> # the ^. part ensures we indent only lines with content
>> # and leave empty lines
> # increase TAB indentation of selection
> # the ^. part ensures we indent only lines with content
> # and leave empty lines undisturbed
> Edit s,^.,TAB&,g
Very nice.
On Friday 29 of March 2013 09:25:47 Peter A. Cejchan wrote:
> Also, could you share the plumbing rules you use (for my
> inspiration/learning)?
1) re-format PHP's strange error mesages into standard
FILE_PATHNAME:LINE_NUMBER
# ... called in FILE_PATHNAME on line LINE_NUMBER and defined in FILE
Maybe it's time for an Acme wiki page?
Also, could you share the plumbing rules you use (for my
inspiration/learning)?
Happy Easter, folks!
++pac
On Fri, Mar 29, 2013 at 9:20 AM, dexen deVries wrote:
> On Friday 29 of March 2013 01:38:06 Bence Fábián wrote:
> > I did a quick writeup on little Ed
Thanks, very nice, mates!
I humbly add some of minebelow.
Best, ++pac
#
## Latin
äëïñöüÿÄÅËÏÖÜ
## Greek
αβγδεζηθλμνξπρστφψωΓΔΘΛΞΠΣΦΨΩ
## select text
:;# select all text
:;25# select from start to line 25 (inclusive)
:25;# select from line 25 (inclusive) to EOF
Edit /
On Friday 29 of March 2013 01:38:06 Bence Fábián wrote:
> 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.
stuff i use:
# clear whole window -- usefull with +Errors
Edit ,d
> Hi!
>
> 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: ℄)
#!/b
Hi!
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.
http://bencef.com/blog/4/
bencef
14 matches
Mail list logo