[TxMt] Open in new window key binding
Allan Odgaard
throw-away-1 at macromates.com
Sat Jun 9 08:14:31 UTC 2007
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.
More information about the textmate
mailing list