[TxMt] Few extensions to C Bundle

Allan Odgaard allan at macromates.com
Thu Sep 15 15:50:08 UTC 2005


On 15/09/2005, at 17.47, Allan Odgaard wrote:

> Here's a very simple version:
>     echo '<pre>'
>     g++ "$TM_FILEPATH" \
>      2> >(perl -pe 's|^.*?:(\d+):\s*(.*?)$|<a href="txmt://open? 
> line=$1">$2</a>|')

Actually, make that $TM_FILENAME instead (for nicer output).

And if you btw want to use -o with the basename:

     echo '<pre>'
     g++ "$TM_FILENAME" -o "$(perl -pe <<<"$TM_FILEPATH" 's|\.[^.]+ 
$||')" \
      2> >(perl -pe 's|^.*?:(\d+):\s*(.*?)$|<a href="txmt://open?line= 
$1">$2</a>|')




More information about the textmate mailing list