Sublime Forum

Prevent new window on dock-click in OS X

#1

Is there a configuration option that prevents Sublime Text 2 from opening a new window when clicking on it in the OS X dock? This only happens when there are no Sublime windows already open, but I’d like to suppress the behavior if possible.

0 Likes

#2

This is standard OS X behaviour, TextEdit works the same way, for example. There presently aren’t any configuration options to disable this.

0 Likes

#3

Thanks for the reply. Posted feedback about this on userecho:

sublimetext.userecho.com/topic/8 … dock-icon/

0 Likes

#4

[quote=“joshbenner”]Thanks for the reply. Posted feedback about this on userecho:

sublimetext.userecho.com/topic/8 … dock-icon/[/quote]

… but ST2 will open the project into that new window created when you click on the icon, there’s no need to close it first. And if you try to use the cmd-ctrl-p keyboard shortcut to open a project (as I imagine most ST2 users do), it won’t even work without that blank window open.

EDIT: I take it back, it does indeed leave that new window open, my mistake. (I guess I just never have ST2 open without a window, I just continually switch projects by keyboard…) Maybe it would be enough for ST2 to behave as I thought it was – just open the project into the blank window if there’s been no activity it in yet.

EDITEDIT (err): ST2 does open the project into the current blank window if you use the keyboard shortcut, but not if you select from Recent Projects by mouse. (I’m on a mac btw.)

0 Likes