I'm sure somebody here knows the answer to this, although it's not specifically related to TextMate.
I'm adding a key equivalent to TextMate's Window -> Zoom menu item with the following:
defaults write com.macromates.textmate NSUserKeyEquivalents -dict-add 'Zoom' '@~/';
The result? It works...but it zooms ALL open windows simultaneously. If you select Window -> Zoom with the mouse (or click the "+" window widget) only the TOP window zooms.
Huh!?
I know this is not a TextMate specific "problem" because the same behavior exists with Terminal.
Q
On 4/6/2006, at 21:46, Quinn Comendant wrote:
Ok. But it doesn't matter, it still does the same thing.
Hey Allen, how abouts a default zoom-this-window key command?
I just tried adding a key to the menu item (in the nib) and interestingly it shows exactly the same problem (zooms all windows.)
This is a bit perplexing, either a bug or something related to resolving the first responder for the key equivalent, but the action leading to disturbance of the first responder chain (because of changing window frames,) although hardly it…
My curiosity probably won’t allow this to just rest, but for now, it seems to be not easily doable (adding that key equivalent)
On Jun 5, 2006, at 5:28 AM, Allan Odgaard wrote:
Ok. But it doesn't matter, it still does the same thing.
Hey Allen, how abouts a default zoom-this-window key command?
I just tried adding a key to the menu item (in the nib) and interestingly it shows exactly the same problem (zooms all windows.)
This is a bit perplexing, either a bug or something related to resolving the first responder for the key equivalent, but the action leading to disturbance of the first responder chain (because of changing window frames,) although hardly it…
My curiosity probably won’t allow this to just rest, but for now, it seems to be not easily doable (adding that key equivalent)
Odd. I have a global pref in my Keyboard pref pane that maps 'Zoom' to cmd- ctrl-z (iTunes default for zoom this window) and it works exactly the same as clicking the green gem plus or selecting Zoom from the menu.
thomas Aylott—subtleGradient—oblivious@subtleGradient.com
On 5/6/2006, at 13:36, thomas Aylott wrote:
I have a global pref in my Keyboard pref pane that maps 'Zoom' to cmd-ctrl-z (iTunes default for zoom this window) and it works exactly the same as clicking the green gem plus or selecting Zoom from the menu.
Ah, and the apple falls from the tree.
Holding down option and clicking zoom will zoom all windows.
This is (apparently) implemented by having the zoom method (of the window) check the keyboard state and look for the option modifier key.
So binding zoom to a key equivalent which contains option, will invoke this “global” behavior.
On Jun 5, 2006, at 7:43 AM, Allan Odgaard wrote:
I have a global pref in my Keyboard pref pane that maps 'Zoom' to cmd-ctrl-z (iTunes default for zoom this window) and it works exactly the same as clicking the green gem plus or selecting Zoom from the menu.
Ah, and the apple falls from the tree.
Holding down option and clicking zoom will zoom all windows.
This is (apparently) implemented by having the zoom method (of the window) check the keyboard state and look for the option modifier key.
So binding zoom to a key equivalent which contains option, will invoke this “global” behavior.
Seems like a strange way to implement things. Those wacky slackey Apple developers :P
thomas Aylott—subtleGradient—oblivious@subtleGradient.com