Open amendlik opened 3 years ago
Bump! I'd just like an arg that opens in a new window. I don't like using tabs in Sublime Merge.
I just wrote this hack AHK launcher to open a new window, but it ALWAYS does (bug in the --new-window flag).
#NoEnv
#NoTrayIcon
exe:=A_ScriptDir . "\..\..\apps\coding\SublimeMerge\App\sublime_merge.exe"
p1=%1%
p2=%2%
p3=%3%
p4=%4%
p5=%5%
; sublime_merge.exe --new-window <rest>
; in 5mins, this was the best I could do...
cmd:="""" . exe . """ --new-window """ . p1 . """ """ . p2 . """ """ . p3 . """ """ . p4 . """ """ . p5 . """"
MsgBox, 64, CMD, % cmd
Clipboard:=cmd
RunWait, % cmd
Problem description
Launching Sublime Merge from Sublime Text using the
sublime_merge_open_repo
command always attempts to reuse an existing Sublime Merge window and add a new repository tab.The main problem with that approach comes when the running Sublime Merge is on a different virtual desktop than where I am working. In that case, I am whisked off to a different virtual desktop, where I have detach the tab, move it back to the virtual desktop I was on, then switch back to that desktop to resume my work.
From [https://forum.sublimetext.com/t/launch-sublime-merge-in-a-new-window/54740/2]()
Preferred solution
Add support for an argument to
sublime_merge_open_repo
that opens Sublime Merge in a new window, rather than adding a tab to an existing window.Alternatives
An even better solution might be to reuse the existing window only if it is on the active virtual desktop. If there is no Sublime Merge window on the active virtual desktop, then create a new one.
Additional Information (optional)