SublimeText / AdvancedNewFile

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

always creating new file at C:/Users/computer_username #116

Closed Sekai92 closed 9 years ago

Sekai92 commented 9 years ago

creating new file always on here

I'm have error, when i want to create a new file, the file always created inside C:\Users\Sekai92\ not inside my opened folder. It's only happen when i create a new folder. I'm using Windows 8 64bits.

skuroda commented 9 years ago

Can you post the error in the sublime console log, as well as your user preferences for the plugin if you have any.

Sekai92 commented 9 years ago

in console have no error sir, but if i open folder using File -> Open Folder, then i press ctrl+alt+n, path for a new file always referred to C:\Users\Sekai92\ , not automatic create a new file inside the folder i have open

skuroda commented 9 years ago

Do you have any user settings for the plugin? These would be located in Packages/User/AdvancedNewFile.sublime-settings.

Sekai92 commented 9 years ago

yes i have that file. This is inside of that file

{"default_root": "current"}

skuroda commented 9 years ago

Do you have a file open? If not i believe i have it set to fallback to the home directory when it can't be resolved.

skuroda commented 9 years ago

My mistake, just recalled the screenshot you posted. If it can't resolve a root, it does fallback to the home directory right now. Though that is something I can add a new setting for or change the behavior. Until I get that in, you can enter a relative path that can't be resolved (./) and it should go to the project directory.

Sekai92 commented 9 years ago

oh, ok sir, i understand. Thx . This work when i'm using dot foreslash ( ./ ). Thank you

skuroda commented 9 years ago

Hi @Sekai92,

I apologize for the delay, I've pushed a new setting in 1.5.0. By default, it is off. Please set current_fallback_to_project to true in your AdvancedNewFile user settings. Let me know if it works for you!

Thanks for using AdvancedNewFile.

Sekai92 commented 9 years ago

done. thx for the information sir :)