SublimeText / AdvancedNewFile

File creation plugin for Sublime Text
MIT License
829 stars 93 forks source link

New file bar doesn't auto-detect multiple folders in project #156

Open ggets opened 8 years ago

ggets commented 8 years ago

Say i have two main folders in my project like so: untitled-1-20160426104012

When i try to create a new file admin/view/template/module/new_file.tpl it's not created as view/template/module/new_file.tpl under the admin main folder in the project, but is rather created in the first folder cheril as cheril/admin/view/template/module/new_file.tpl

skuroda commented 8 years ago

the "root" directory without anything specified is controlled by default_root property. Right now the plugin isn't smart enough to know that you want to use the top level directory when it is specified. As a work around, you should be able to specify admin:view/template/module/new_file.tpl, which should create the file in the create place.