Hello,
I supposedly have TextMate 2 bound to a single Desktop, but when I launch TextMate, or run `mate file` to open a file in an existing session, then that it will open on the current Desktop, ignoring the setting. Essentially, TextMate always behaves as if the Desktop affiliation is always None.
OSX 10.7.2.
-MinRK
On 24 Dec 2011, at 01:55, MinRK wrote:
I supposedly have TextMate 2 bound to a single Desktop
Where do you set this?
but when I launch TextMate, or run `mate file` to open a file in an existing session, then that it will open on the current Desktop, ignoring the setting. Essentially, TextMate always behaves as if the Desktop affiliation is always None.
If you use ‘open -b com.macromates.TextMate.preview «file»’ from Terminal does it then behave as you expect?
On Dec 27, 2011, at 8:04 PM, Allan Odgaard wrote:
On 24 Dec 2011, at 01:55, MinRK wrote:
I supposedly have TextMate 2 bound to a single Desktop
Where do you set this?
You need at least two desktops (go to Mission Control and click the + button). Then, open TextMate, move its window to the second desktop, and in its Dock icon, go to Options → Assign To: This Desktop.
but when I launch TextMate, or run `mate file` to open a file in an existing session, then that it will open on the current Desktop, ignoring the setting. Essentially, TextMate always behaves as if the Desktop affiliation is always None.
If you use ‘open -b com.macromates.TextMate.preview «file»’ from Terminal does it then behave as you expect?
FWIW, I cannot reproduce MinRK's problem. Both `mate` and opening in the GUI make the TextMate window come up in the second desktop.
On Tue, Dec 27, 2011 at 11:10, Sören Kuklau chucker23n@gmail.com wrote:
On Dec 27, 2011, at 8:04 PM, Allan Odgaard wrote:
On 24 Dec 2011, at 01:55, MinRK wrote:
I supposedly have TextMate 2 bound to a single Desktop
Where do you set this?
You need at least two desktops (go to Mission Control and click the + button). Then, open TextMate, move its window to the second desktop, and in its Dock icon, go to Options → Assign To: This Desktop.
Correct, this is exactly how I have done it.
but when I launch TextMate, or run `mate file` to open a file in an existing session, then that it will open on the current Desktop, ignoring the setting. Essentially, TextMate always behaves as if the Desktop affiliation is always None.
If you use ‘open -b com.macromates.TextMate.preview «file»’ from Terminal does it then behave as you expect?
No, this behaves the same as `mate`, and opening files associated with TM2 from Finder, and dragging files onto the icon in the doc.
Interestingly enough, I changed the setting to 'All Desktops', and it also had no effect on TM2, but *did* change the behavior for TM1. Could there be a conflict of bundle identifiers happening somewhere?
-MinRK
FWIW, I cannot reproduce MinRK's problem. Both `mate` and opening in the GUI make the TextMate window come up in the second desktop.
-- Sören Nils 'chucker' Kuklau
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 27 Dec 2011, at 20:29, MinRK wrote:
[…] I changed the setting to 'All Desktops', and it also had no effect on TM2, but *did* change the behavior for TM1. Could there be a conflict of bundle identifiers happening somewhere?
It might not be unlikely that the actual setting is keyed to bundle identifier but the GUI allowing you to change it uses application name, so when you change it from the GUI you’re actually changing the settings of TM 1.x.
I’m unsure how the system handles these settings but you can try to do:
defaults read com.macromates.textmate
Before/after changing the setting and see if you can find a defaults key that has changed — then manually set that for com.macromates.TextMate.preview.
On Dec 27, 2011, at 8:34 PM, Allan Odgaard wrote:
On 27 Dec 2011, at 20:29, MinRK wrote:
[…] I changed the setting to 'All Desktops', and it also had no effect on TM2, but *did* change the behavior for TM1. Could there be a conflict of bundle identifiers happening somewhere?
It might not be unlikely that the actual setting is keyed to bundle identifier but the GUI allowing you to change it uses application name, so when you change it from the GUI you’re actually changing the settings of TM 1.x.
I’m unsure how the system handles these settings but you can try to do:
defaults read com.macromates.textmate
Before/after changing the setting and see if you can find a defaults key that has changed — then manually set that for com.macromates.TextMate.preview.
The setting appears to be in ~/Library/Preferences/com.apple.spaces.plist, e.g.:
{ app-bindings = { com.macromates.textmate.preview = "D0A48EB2-CBFD-47C0-907C-DBA199547321"; }; spaces = ( { type = 0; uuid = "D0A48EB2-CBFD-47C0-907C-DBA199547321"; }, ); }
On Tue, Dec 27, 2011 at 11:43, Sören Kuklau chucker23n@gmail.com wrote:
On Dec 27, 2011, at 8:34 PM, Allan Odgaard wrote:
On 27 Dec 2011, at 20:29, MinRK wrote:
[…] I changed the setting to 'All Desktops', and it also had no effect on TM2, but *did* change the behavior for TM1. Could there be a conflict of bundle identifiers happening somewhere?
It might not be unlikely that the actual setting is keyed to bundle identifier but the GUI allowing you to change it uses application name, so when you change it from the GUI you’re actually changing the settings of TM 1.x.
I’m unsure how the system handles these settings but you can try to do:
defaults read com.macromates.textmate
Before/after changing the setting and see if you can find a defaults key that has changed — then manually set that for com.macromates.TextMate.preview.
The setting appears to be in ~/Library/Preferences/com.apple.spaces.plist, e.g.:
{ app-bindings = { com.macromates.textmate.preview = "D0A48EB2-CBFD-47C0-907C-DBA199547321"; }; spaces = ( { type = 0; uuid = "D0A48EB2-CBFD-47C0-907C-DBA199547321"; }, ); }
Indeed, watching `fs_usage -f filesys` while changing the value revealed this. Indeed, copying the com.macromates.textmate entry to com.macromates.textmate.preview and logging out/in to reload spaces preferences resolved the issue.
Thanks!
-- Sören Nils 'chucker' Kuklau
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate