[TxMt] Open in new window key binding

Edward K. Chew ekchew at mac.com
Sun Jun 10 19:55:13 UTC 2007


On 9-Jun-07, at 4:14 AM, Allan Odgaard wrote:

> On 8. Jun 2007, at 18:04, Edward K. Chew wrote:
>
>> Just wondering how I can go about assigning a key combo for  
>> opening project files in their own windows?  (I like to keep the  
>> files I'm actively editing in separate windows so I can easily  
>> compare back to what I already have.)  The help says to go through  
>> System Preferences, but it wants the exact name of the menu item,  
>> which is variable in this case (Open "foo" in New Window).  Also,  
>> it seems you can only open one file at a time this way, which is a  
>> bit of a drag.
>
> Normally this would apply (from the same page):
>
>     Dynamic menu items i.e. those which change title depending on
>     the programs state (like Fold Current Block / Selection)
>     should be specified with their initial title.
>
> For the item in question that is “Open Selected File in New Window”  
> but a quick test shows that the item loses the key when the title  
> changes.
>
> I think because the system does the menu key assignment when the  
> menu is brought on screen, and for the pop-up menu this is each  
> time you open it (i.e. it isn’t cached).
>
> So in your case, I am afraid you’ll have to open TextMate.app/ 
> Contents/Resources/English.lproj/Project.nib and set the key  
> equivalent there.
>
> But be warned, there is a problem when pop-up menu keys in that  
> they are not active until the menu has been on screen at least once.

Okay, that seemed to work.  I notice it's not enough to open the  
contextual menu with a control-click.  You need to activate the pop- 
up menu to get it to register the key binding.  Ah well, as long as  
it works...

-Ted




More information about the textmate mailing list