liamcain / AutoFileName

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

How add first slash? - SOLVED at 2017 + ST3! #69

Closed Kcko closed 6 years ago

Kcko commented 10 years ago

I set "afn_use_project_root": true, "afn_proj_root": "",

When i choosing some file in some directory (selection now work correctly). But final path is without opening slash , see http://files.rjwebdesign.cz/i/20140910-115755---595x346---t---pn.png

How can I do this? (Im using rewrite mod and and need to set full path with opening slash)

BAD assets/gfx/picture.jpg GOOD /assets/gfx/picture.jpg

Thx for idea.

evoactivity commented 9 years ago

Been an issue for a while, have a look at this comment from another issue. https://github.com/BoundInCode/AutoFileName/issues/34#issuecomment-34754251

Setting up your project file as shown there will work. Will need to be done per project.

Kcko commented 6 years ago

Yes its a true.

but it was rather complicated to find a solution.

My Solution: Im using Win 10, with disk C and Z (with my webs). My Settiings:

"afn_use_project_root": true, "afn_proj_root": "z:www/project123/", (you see right, without "/", only z: or c: )

and now when i type "/" i finally get folders in this project :-)

BAZINGA!