DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

Expand project directory in per-project settings to get a relative path #607

Open ccll opened 9 years ago

ccll commented 9 years ago

Is there a way to specify a path relative to current project folder?

I'm using a vendoring/locking tool (goop or godep) to lock the version of dependencies, the tools put all 3rdparty packages in a separate GOPATH like "./.vendor", so 'GS_GOPATH' is not working for me, I think the best approach is to specify a relative path in per-project settings, e.g. "GOPATH": "${project_folder}/.vendor"

I've implemented this for another plugin SublimeLinter-clang, so maybe I can port it to GoSublime if there isn't one, but I thought better ask here first.

sigurdteigen commented 9 years ago

+1. just started using godep and I want to have multiple folders open. Please merge this.

mafredri commented 9 years ago

What's the status on this? GoSublime is quite painful to use with Godeps at this moment :(.

davidzhao commented 9 years ago

Would love to have this feature. @DisposaBoy, any chance of merging this in?