AutoFileName icon indicating copy to clipboard operation
AutoFileName copied to clipboard

Always start from project root

Open alexbet opened this issue 11 years ago • 4 comments

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

alexbet avatar Nov 30 '13 02:11 alexbet

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.

skifreak avatar Jul 19 '14 22:07 skifreak

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

xaviervalarino avatar Apr 10 '15 04:04 xaviervalarino

Any change? :/

Kcko avatar Jan 03 '18 12:01 Kcko

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/"

brightwiths avatar Jan 07 '20 08:01 brightwiths