Home Download Buy Blog Forum Support

Best setting for EDITOR env variable?

Best setting for EDITOR env variable?

Postby alexdowad on Sun Feb 24, 2013 7:35 pm

Hi, hopefully simple question here:

I want to use Sublime Text 2 as my default system editor, so that (for example) Git will allow me to edit commit messages with sublime. I added the following to my bash rc file:

export EDITOR="sublime -nw"

This works fine if I already have Sublime running -- it starts a new window, and waits until that window is closed to see what I typed. However, if Sublime is *not* running, it also starts a window with my most recent project open, and waits until *that* window is also closed. This is quite irritating. Does anyone have a command-line invocation to start Sublime *without* automatically loading the most recent project?
alexdowad
 
Posts: 6
Joined: Sun Feb 10, 2013 10:24 pm

Re: Best setting for EDITOR env variable?

Postby rivy on Tue Feb 26, 2013 4:05 am

I also ran into this last year & requested some method of dealing correctly with this situation.

I opened a feature request on UserEcho: Add --new-instance and --noremembered files. But it hasn't gotten any response or user traction. Apparently, very few other users care about it, as the feature has only gotten 7 cumulative votes in the last 10 months.

Take a look, vote, and tell others about it as well. Maybe, it will start to generate more interest and they'll add the capability in the next version.
rivy
 
Posts: 1
Joined: Mon Apr 09, 2012 10:45 pm

Re: Best setting for EDITOR env variable?

Postby alexdowad on Thu Feb 28, 2013 6:26 am

OK, I voted for your feature request. I'll post here if I can figure out a workaround (for the time being).
alexdowad
 
Posts: 6
Joined: Sun Feb 10, 2013 10:24 pm

Re: Best setting for EDITOR env variable?

Postby mwb1100 on Thu Feb 28, 2013 7:41 pm

FWIW I voted for this request as well. It drives me crazy that I can't use Sublime for this kind of one-off editing.
mwb1100
 
Posts: 34
Joined: Mon Jun 25, 2012 5:40 pm

Re: Best setting for EDITOR env variable?

Postby mwb1100 on Mon Apr 29, 2013 9:35 pm

I've opened this issue on the new volunteer-run bug tracker:

https://github.com/SublimeText/Issues/issues/28

I have no idea if jps is paying any attention to that effort.
mwb1100
 
Posts: 34
Joined: Mon Jun 25, 2012 5:40 pm

Re: Best setting for EDITOR env variable?

Postby mark4 on Tue Apr 30, 2013 1:01 am

mwb1100 wrote:I've opened this issue on the new volunteer-run bug tracker:

https://github.com/SublimeText/Issues/issues/28

I have no idea if jps is paying any attention to that effort.


i would hazzard a guess that he is probably paying attention.. this doesnt guarantee he will address any of the issues noted there :)
mark4
 
Posts: 97
Joined: Sat Feb 11, 2012 3:33 am

Re: Best setting for EDITOR env variable?

Postby Stubblechunks on Wed May 01, 2013 3:13 pm

Yeah, it would be nice to have subl stand in for nano on all these little one-off editing sessions that crop up.
Stubblechunks
 
Posts: 24
Joined: Wed Apr 24, 2013 8:35 pm

Re: Best setting for EDITOR env variable?

Postby alexdowad on Wed Aug 07, 2013 1:48 pm

If anyone comes to this (old) thread looking for a solution, I finally found a workaround:

http://stackoverflow.com/questions/1459 ... on-macos-x

I can't upvote that one enough times!
alexdowad
 
Posts: 6
Joined: Sun Feb 10, 2013 10:24 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 34 guests