Sublime Forum

Using Sublime Text as $GIT_EDITOR with subl -w

#1

I’ve used Sublime Text as my $GIT_EDITOR with “subl -w” for years. In ST3, invoking “subl -w /path/to/file” activates the most recently active ST window and creates a new tab with /path/to/file. Closing the tab re-activates the terminal window that was waiting for subl to finish.

However, in ST4, closing the tab keeps Sublime as the active program rather than re-activating the waiting terminal window. Is this change intended? Is there an option to instead use the previous functionality?

1 Like

#2

That should continue to work now as it did before (it works here, for example).

What OS are you working on?

0 Likes

#3

Appears several users are faced with that issue.

0 Likes

#4

I’m on MacOS Catalina v10.15.7. Sublime Text build 4107.

0 Likes

#5

same here on macOS 11.3.1 (20E241) and Sublime Text Build 4107. Quite annoying. is there any quick and dirty fix currently?

0 Likes

#6

Made an account just to ping this thread. Is there a solution or any other tracking issue?

I’m on macOS 11.5.2 and Sublime Text 4 Build 4113

I found https://github.com/sublimehq/sublime_text/issues/4460#issuecomment-880856557

0 Likes