david-driscoll / atom-yeoman

A yeoman ui for atom.io
https://github.com/david-driscoll/atom-yeoman
MIT License
26 stars 5 forks source link

Insert new file into highlighted directory #9

Closed sgwill closed 9 years ago

sgwill commented 9 years ago

Currently atom-yeoman adds new files (new Class, new Controller, etc) into the project root instead of the currently highlighted folder.

Instead, add to highlighted folder

david-driscoll commented 9 years ago

Begs the question, should we always ask for the directory they want to work out of?

sgwill commented 9 years ago

Yeah, I think that's how I'll start the feature and try using it for a few days to see if it feels right.

blai commented 9 years ago

I'd say this should be a preference. I see both case (add new files into root, and add new files into highlighted folder) valid.

Maybe it can be a option?

david-driscoll commented 9 years ago

Make a checkbox, to try and use the selected folder first, or a set of options perhaps.

david-driscoll commented 9 years ago

This will be going shortly with some caveats in how yeoman works (namely if .yo-rc.json exists or not). This can be fixed via something like https://github.com/OmniSharp/generator-aspnet/issues/159 .