[TxMt] Using non-saved file with TM command

Mike Mellor alaskamike at gmail.com
Sun Jun 18 00:58:36 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jun 17, 2006, at 3:51 PM, Charilaos Skiadas wrote:

>
> On Jun 17, 2006, at 6:33 PM, Mike Mellor wrote:
>>
>> I am working on a command to sort my GTD list by context.  The  
>> problem I have is that if I have not saved the file, the command  
>> sorts the saved version of the file instead of what's currently in  
>> TextMate.  How do I select the current file instead of the saved  
>> file?  Thanks.
>
> You can either set the entire document as the input to the command,  
> and then process that, or you can tell the command to save the file  
> first.
>
>> Mike
>>
>
> Haris


Maybe I'm using the wrong variable - I'm trying to use  
'TM_SELECTED_TEXT' but that doesn't seem to work.  I would prefer to  
work with the current version (buffer) than the saved file.  Thanks.

Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFElKVA4oDM7Rgs0h0RAlvFAJ4lWPYk93Y317L/wwXg3dZQvF5krgCgyZ5k
c+0Kb/mItlaPvD4yYbmlBus=
=c7oO
-----END PGP SIGNATURE-----



More information about the textmate mailing list