[TxMt] Addendum (Was: Problems with b5 and services menu / BOM ...)

Fred B. fredb7 at starflam.com
Fri Mar 11 04:13:10 UTC 2005


On 11 mars 05, at 01:36, Allan Odgaard wrote:

> On Mar 11, 2005, at 1:18, Christian Bogen wrote:
>
> [ TextMate service ]
>> [...] It's greyed out when I select text existing mails in Mail.app, 
>> seems to work only when composing new ones (ie. in the mail editor). 
>> Is that a bug or a feature?
>
> The service offers to edit and return text, so it will not work for 
> non-editable (but selected) text. Unfortunately as the system is 
> currently made, I'd need to make a new service (i.e. entry in the 
> services menu) if I were to also offer a 'new document with selected 
> text' service.
>

Two Contextual Menu commands I made can deal with this:

"Open text in Textmate" puts the selected or clipboard text in a temp 
file and opens it in TM.
"New TextMate file here w/Clipboard" make a new file where you 
triggered it, lets you choose the name of the file and opens it in TM.

These commands (and others) are in the repository, instructions are in 
the readme.

http://macromates.com/svn/Bundles/trunk/Tools/CM

Unlike services, you can't have a KB shortcut to trigger CM, but you 
can make a droplet with it.

If it's only in Mail.app you can make an Applescript put it in 
"~/Library/Scripts/Mail Scripts" and assign a shortcut to it by adding 
something like "___ctl-Y.scpt" at the end of the script's name (This 
can be done only for Mail.app... weird).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1438 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050311/e6f238b6/attachment.bin>


More information about the textmate mailing list