[TxMt] Re: key command for jump to beginning of text, rather than beginning of line?

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Aug 2 22:25:35 UTC 2010


Maybe a quick solution is to create tmcommand, input: none, output:discard

with the command:


open "txmt://open/url?line=$TM_LINE_NUMBER&column=$(
perl -e '
$a = $ENV{"TM_CURRENT_LINE"};
$a =~ s/^\s*//;
$diff = length($ENV{"TM_CURRENT_LINE"}) - length($a);
print ++$diff;
')"



Cheers,
--Hans



More information about the textmate mailing list