> I wrote a small script to tabify/untabify in acme using Russ's tab.c
in general, pipe (|) is your friend. it's rare to have to interact with acme's
special files directly.
is there a reason you can't just execute "|tab -n4" ?
(perhaps i've misunderstood the script - i haven't tried it)
slight digression: i have two scripts, called a+ and a-, that
do indentation and un-indentation, as follows:
% cat /bin/a+
#!/bin/rc
if(~ $#* 0){
* = ' ' # tab
}
sed 's☺^☺'^$1^☺
% cat /bin/a-
#!/bin/rc
if(~ $#* 0){
* = ' '
}
sed 's☺^'^$1^'☺☺'
the short names are so that they take very little space
in an acme tag. then i have |a+ in the tag of a window,
so i can indent text simply by middle clicking it, two key strokes
and it can be changed to unindent. give it an argument and it can be
used to comment/uncomment blocks of code.
the smiley faces are to avoid doing a proper quoting job
(which i should really do in case i want to indent by '&' or something,
but i've not had the need so far)
i didn't need to mention that, but i have found them
very convenient over the years, so i did. so there.
rog.