[TxMt] repetition of inputinputinputinput
David Lee
david at davelee.com.au
Sun Nov 27 13:45:12 UTC 2005
thanks Allan, they are neat. Now i know about $TM_LINE_NUMBER and
$TM_COLUMN_NUMBER ;) i've borrowed one of them.
Note: i had to change line line 4 in the following (markdown Heading
lvl2):
if [[ $TM_COLUMN_NUMBER == 1 ]]
then head -n $(($TM_LINE_NUMBER -1))|tail -n 1|sed 's/./-/g'|tail
-c +"$TM_COLUMN_NUMBER"
else printf '\-\t' # <= this line here
fi
to
else printf '-'; printf '\t'
otherwise it inserted the \- literally when there are > 1 -'s on the
line.
YMMV but maybe the snippet should be updated ( and there's likely a
slightly more handsome way to do it)
cheers,
David
On 28/11/2005, at 12:25 AM, Allan Odgaard wrote:
> On 27/11/2005, at 12:10, David Lee wrote:
>
>> FWIW, to underline a word, use the following as a command with
>> Input : selected text || line, output: replace. [...]
>
> There are actually two neat commands in the Markdown bundle to
> underline lines with - or =, on the line below, start with either
> of these, and press tab (setup only for the Markdown scope).
>
> There's no general way to do vim-style repeat of next action.
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
More information about the textmate
mailing list