vellerefond / project-ring

Project management for the Atom editor.
GNU General Public License v2.0
15 stars 8 forks source link

Open folder does not allow for opening a folder to create a new project #20

Closed srconklin closed 9 years ago

srconklin commented 9 years ago

File -> Open folder does not allow for opening a folder to create a new project and add it the ring. It loads the last project and ignores opening a new folder... i am assuming when "make the current project the Default on Start Up" is checked...

I have about 10 old ST projects that i want to open one by one and then add them to the project ring for toggling and i wish to keep the "make the current project the Default on Start Up checked.. How can i go about doing this?

vellerefond commented 9 years ago

If this is the case and "make the current project the Default on Start Up" causes the opening of a folder to load the "default" project, then it is a bug and I will check into it. For now and until I have had a chance to check what is happening, after opening a new window you can do a "Set Project Path" operation (using the command pallete; this is just another way to open a folder in the current window) in that window to "unload" the currently loaded project and successfully associate another folder with the tree view. After that, an "Add Project" operation will succeed in creating a new project in the ring.

srconklin commented 9 years ago

Ok thanks.. will do.. am i missing something, but wouldn't one expect to just see a menu option : "close project" which would unload it.. then it seems i should be able to use atom's open folder command to open a folder then click "add Project"

vellerefond commented 9 years ago

Actually, there is but it is (perhaps :-) misnamed) "Unlink". This will unload the current project so that the next "Open Folder" from the File menu will succeed. "Set Project Path" is just a shortcut. It unlinks and opens a folder with a single command.

srconklin commented 9 years ago

oh good to know... you are right, it was not intuitive that either of those commands meant that.. then perhaps there is no bug?

vellerefond commented 9 years ago

Well, opening a folder explicitly should open an Atom window having that folder as the root folder even if the default project has been set. I think the default project should be used only when opening Atom without an explicit context. I will see what I can to do to match this logic and perhaps offer more intuitive labels for the "Unlink" and "Set Project Path" commands.

jixunmoe commented 9 years ago

Experiencing same problem. Even when option "Make The Current Project The Default On Start Up" is unchecked.

vellerefond commented 9 years ago

A lot of work had to be done due to the changes for the upcoming version 1.0 of Atom's API. Version v0.20.0 (0d913fa) makes Project Ring usable again. Unfortunately, I hadn't had a lot of time to test everything from the start but all basic functions have worked for me with Atom version v0.201.0. Now, automatic loading of projects based only on the root directory is deprecated (since we have multiple root directories).