liamcain / AutoFileName

Sublime Text plugin that autocompletes filenames
515 stars 78 forks source link

Always start from project root #48

Open alexbet opened 10 years ago

alexbet commented 10 years ago

First of all, let me tell you that this is an awesome tool and I use it with S3!

However, something is bothering me and I hope that there is an easy fix for it.

I have this in the AFN settings:

"afn_use_project_root": true, "afn_proj_root": ""

When I hit "/", it always starts from the root of the folder where the file is located.

I want my paths to always be relative to the project root. For example, like this:

/assets/images/image.jpg /assets/css/styles.css

So, my questions is, how do I make it to always start from the project root, no matter where the files is located in the folder hierarchy of the project?

Thanks! Alex

skifreak commented 10 years ago

I'm having this same problem. In fact, changing afn_use_project_root from false to true in my user settings is having no change to the behavior, regardless of afn_proj_root's settings. No matter what, AFN is beginning at the location of the current file.

xaviervalarino commented 9 years ago

I also tried setting afn_use_project_root to true and changed the path in my project settings, but am having the same issue.

Kcko commented 6 years ago

Any change? :/

braivs commented 4 years ago

Hi, I am using Pug, and my files located in release folder. Tried to set this, but no work:

"afn_use_project_root": true,
"afn_proj_root": "release/"