SublimeTextXdebug icon indicating copy to clipboard operation
SublimeTextXdebug copied to clipboard

Path mapping relative to project folder

Open Ralle opened this issue 9 years ago • 2 comments

I am working on a project both from my Mac laptop and from my Windows PC. Everything is cross platform so far and I would like to keep it that way. I have an issue with the 'path_mapping' as it must be absolute. I would very much like to see something along the lines of:

"path_mapping": {
    "/var/www/html/library/": "./addons/library/",
}

Where the dot '.' is the folder of the .sublime-project file.This would greatly help the portability of my project :).

Ralle avatar May 26 '15 05:05 Ralle

it'd probably be better to have it use sublime's built-in variables so something like

"path_mapping": {
    "/var/www/html/library/": "${project}/addons/library/",
}

Though i'm not sure know how it should work where you have multiple folders in the project. perhaps some kind of macro expansion like ${folders:name_of_folder_in_project}

mrphang avatar Aug 07 '15 15:08 mrphang

I need this as well. It's essential in order to be able to have the project file with this setting inside git and be able to share with others.

yannisc avatar Sep 12 '16 07:09 yannisc