Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
/ gb-sublime Public archive

gb plugin to generate a .sublime-project file for use with GoSublime and Sublime Text

Notifications You must be signed in to change notification settings

ap0/gb-sublime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

gb-sublime

** This is archived. You should be using Go modules now. **

Simple app that generates a Sublime Text .sublime-project file with the GOPATH configured for use by gb and GoSublime.

Installation

go get -u github.com/ap0/gb-sublime

To ensure it works with gb, make sure that the binary is placed in a directory on your $PATH. If your $GOPATH/bin is in your $PATH, you're good.

Running

Navigate to the directory your gb project is in, then run:

cd /home/adam/code/my-gb-project
# gb plugins are run using `gb <plugin-name>`
gb sublime

A my-gb-project.sublime-project file will be generated that looks like this:

{
    "folders":
    [
        {
            "path": "/home/adam/code/my-gb-project"
        }
    ],
    "settings": {
        "GoSublime": {
            "env": {
                "GOPATH": "/home/adam/code/my-gb-project:/home/adam/code/my-gb-project/vendor"
            }
        }
    }
}

You can also override this template. Running the binary directly (gb-sublime, NOT gb sublime) with the -write-template flag to write out a modifiable template to your home folder:

$ ./gb-sublime -write-template
writing template to /home/adam/.gb-sublime-project.template...

Modify this to your liking, then run gb project again and it will use that template.

Contributing

Hack on this, make it better, submit PRs.

About

gb plugin to generate a .sublime-project file for use with GoSublime and Sublime Text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages