[TxMt] Re: Linefeeds in commands & snippets

Mike Mellor alaskamike at gmail.com
Sat May 13 01:58:15 UTC 2006


On May 12, 2006, at 4:00 AM, textmate-request at lists.macromates.com  
wrote:
> I suggest the following:
>
>     #!/usr/bin/env python
>     import sys, os
>
>     oldtask = os.environ['TM_CURRENT_LINE']
>     sys.stdout.write("DONE " + oldtask[4:])
>
> -Jacob

Jacob -

Cool!  I haven't done much coding lately and I guess it shows.   
Thanks for the help.

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060512/9a3ae86b/attachment.html>


More information about the textmate mailing list