Osmose / advanced-open-file

Open files and folders in Atom easily.
https://atom.io/packages/advanced-open-file
Other
118 stars 20 forks source link

automatically 'Add project folder' #93

Closed dagolinuxoid closed 8 years ago

dagolinuxoid commented 8 years ago

Once a needed file has opened in order to see tree structure you have to invoke add-project-folder via palette or through ctrl-o. I think it would be useful to add option in advanced-open-file settings : automatically add project folder its opened file as if we open this file by shell (terminal) $ atom name-file.

Osmose commented 8 years ago

Thanks for the suggestion!

I'm not a fan of having a setting that opens a file/directory as a project folder because I don't think that behavior is expected or common. You'd have to toggle it off and on constantly or have a TON of project folders open.

But maybe instead we can make the "open project folder" action not automatically close the dialog? That way, if you want to open a project folder and a file, you can just open the project folder and then continue navigating to the file you want to open. But people who just want to open a file aren't forced into opening project folders or toggling a preference all the time.

Does that sound like it would handle your use case?

dagolinuxoid commented 8 years ago

Heck, yeah)). Definitely it sounds good! ctrl+alt+o > /home/linux/web-project/ for example and than hitting enter will open the project folder in the tree.

Osmose commented 8 years ago

Fixed in master, this should be released sometime within the next week. :D

dagolinuxoid commented 8 years ago

CooL :clap:

Osmose commented 8 years ago

Released! https://github.com/Osmose/advanced-open-file/releases/tag/v0.14.3

dagolinuxoid commented 8 years ago

Yep )), but hitting enter after /home/linux/Templates/atompen/ for example do nothing; it supposed to open this (atompen) folder as a project, right?

Osmose commented 8 years ago

Nah, there's a separate keyboard shortcut for opening project folders. It's Shift-Cmd-O/Ctrl-Alt-O by default.