Home Download Buy Blog Forum Support

ST3 subl --wait doenst work in .gitconfig

ST3 subl --wait doenst work in .gitconfig

Postby whololo on Wed May 15, 2013 7:55 am

Hi

I have specified subl -w as editor in my ~/.gitconfig to manage merge messages, commit messages, diff etc in sublime text

Since swithcing to sublime 3 this doesnt work it seems, because git doesnt get the signal when sublime closes the file.

Anyone having the same issue or a workaround (except using another editor which is what im going to have to do until this is resolved)


Thanks!
whololo
 
Posts: 12
Joined: Fri Jul 08, 2011 10:47 am

Re: ST3 subl --wait doenst work in .gitconfig

Postby Narretz on Wed May 15, 2013 12:51 pm

I actually have the same issue. No workaround, unfortunately.
Narretz
 
Posts: 41
Joined: Mon Feb 04, 2013 5:33 pm

Re: ST3 subl --wait doenst work in .gitconfig

Postby Narretz on Fri May 17, 2013 10:34 am

works for me now in the latest build. 3035
Narretz
 
Posts: 41
Joined: Mon Feb 04, 2013 5:33 pm

Re: ST3 subl --wait doenst work in .gitconfig

Postby bnmnetp on Fri May 17, 2013 1:32 pm

This is still broken for me, and is easy to reproduce with or without git.

From the command line: subl -n -w foo

change foo, save change, close window.

The shell just sits there waiting as though I hadn't closed the window. Even quitting ST3 completely does not do the trick.
bnmnetp
 
Posts: 2
Joined: Fri May 17, 2013 1:28 pm

Re: ST3 subl --wait doenst work in .gitconfig

Postby vol0da on Fri May 17, 2013 7:43 pm

It's working correctly in the latest build (3035) on OS X.
vol0da
 
Posts: 3
Joined: Tue Dec 20, 2011 6:59 pm

Re: ST3 subl --wait doenst work in .gitconfig

Postby bnmnetp on Fri May 17, 2013 10:11 pm

Ok, for the records...

I figured out why 3035 was not working for me. The problem was tmux. The tmux server was somehow preventing the shell from getting the signal that I was done in sublime text. For me the solution is to use the reattach-to-user-namespace command as described here: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard I'm not sure this is the best solution, but it works. If other tmux users have run across this problem and have a better solution I would be happy to hear about it.
bnmnetp
 
Posts: 2
Joined: Fri May 17, 2013 1:28 pm

Re: ST3 subl --wait doenst work in .gitconfig

Postby yrammos on Sat May 18, 2013 1:49 pm

`reattach-to-user-namespace` does not work on my end. Are you simply passing `subl -w` as an argument to it? I tried this from both within and outside tmux, with the same outcome.
yrammos
 
Posts: 28
Joined: Fri Jun 22, 2012 3:26 am

Re: ST3 subl --wait doenst work in .gitconfig

Postby whololo on Sun May 19, 2013 6:05 pm

set-option -g default-command "reattach-to-user-namespace -l zsh"

in my tmux conf fixed it. Thanks everyone!
whololo
 
Posts: 12
Joined: Fri Jul 08, 2011 10:47 am

Re: ST3 subl --wait doenst work in .gitconfig

Postby btables on Tue Jul 08, 2014 8:31 pm

Thanks for the link to reattach-to-user-namespace, worked perfectly for me.
btables
 
Posts: 1
Joined: Tue Jul 08, 2014 8:30 pm


Return to Technical Support

Who is online

Users browsing this forum: Alexei, Exabot [Bot], vostreltsov, Yahoo [Bot] and 17 guests