Sublime Forum

Double clicking on a .sublime-project file?

#1

Hi,

what is supposed to happen when I double click on a project file in the finder (I’m on OSX) ? I would like it to open the corresponding project but instead it edit the .sublime-project file … is it possible to change this behavior ?

If not, it means that I have to open ST2 and then manually click on project>open and find my project ??

0 Likes

#2

Am I the only one to have this problem with project ?

0 Likes

#3

That’s how it works in ST3. Double-clicking the project file opens the project in Sublime.

I don’t have ST2 installed anymore, so I can’t test it there unfortunately.

0 Likes

#4

This might also be an OSX issue as I have Win7 64 and my project files load the actual project when double-clicked.

I don’t know how to change settings in OSX but if your event handler is changed to load Sublime Text and pass the project as variable that may change the way it is opened.
Although, as I write this I am also looking at how the registry is setup to handle that type of file and the actual program (Sublime Text) is important.
ie. in the registry both Notepad and Sublime Text can be used to “Open with …” that type of file, however Notepad doesn’t know what to do with it and just loads the project file as a text file whereas Sublime loads the actual project.
So I fear it may be the OSX version of Sublime Text that doesn’t handle them the expected way.

0 Likes

#5

ok thanks for the answers … I am not sure to really understand everything :smile: but can anyone on OSX confirm what is happening when double clicking on project file ? :neutral_face:

0 Likes

#6

I’m on OSX 10.8.5 and double clicking on a project file works as expected, project opens.

0 Likes

#7

arh …Are you also using ST2 ?

I am also on 10.8.5 :open_mouth: … I would really like to understand what I can try to change this behaviour then …

0 Likes

#8

no, I use ST3 as my primary editor.

0 Likes

#9

ok thanks … I guess I’ll try to migrate to ST3 then :smile:

0 Likes

#10

Cool, I’ve been using it as my default for some time now and it’s been pretty solid. For what it’s worth, I still have ST2 installed and right clicked > open with > ST2 and my project files open as expected in ST2 as well.

0 Likes

#11

arf … that is pretty weird … and I am out of any clue about what I can do to change that …

thanks for having tried anyway

0 Likes

#12

Try running sublime from the terminal, with the project file as the argument, and see what happens. That might give you some insight into what’s going on.

0 Likes

#13

good idea (thanks) :smile:

When I open it from the terminal : it works ! which means that it opens the project and not the sublime-project file in JSON mode …

any clue for what I can do to have the same through the finder :blush: ?

0 Likes

#14

I have been troubled by the same problem and I just realized that if I click on a sublime-project-file while ST3 is not running it will open ST3 and display the content of the project-file. If ST3 is already running it will load the project.

0 Likes

#15

It looks to be the same for me here on ST2

0 Likes