BBEdit package for Go development
Ruby Shell Go Makefile
Latest commit 4f67310 Mar 3, 2017 @ascarter Add servehttp clipping
Permalink
Failed to load latest commit information.
src Add servehttp clipping Mar 3, 2017
.gitignore Refactor build Aug 6, 2015
LICENSE Update license Aug 20, 2015
Makefile Switch from gotags -> Universal Ctags Apr 27, 2016
README.md Fix readme typo Apr 27, 2016
test.go Fix raw string matching Sep 8, 2015

README.md

BBEdit package for Go development

Features

  • Full language syntax highlighting
  • Support for code folding func
  • Language defaults
  • Full set of clippings
  • Go tool scripts
  • Completion data for Go standard library

The package is a collection of BBEdit supporting elements for developing Go applications. The Resources directory contains the toolset for supporting the scripting and integration.

The shell scripts utilize a snapshot of gows which is a workspace manager that can detect the Go workspace and run commands within that workspace. The scripts also uses a snapshot of bbresults. This is a Ruby script that accepts formatted records on stdin and displays them in a results browser window in BBEdit. It is useful for lint or build tools to output results in BBEdit in an easy to use form.

Requirements

The following are required for using Go.bbpackage:

  • BBEdit 11.1 or greater
  • Go 1.5 or greater

Optional components:

ctags

A completion library can be built using Universal Ctags. This is a modern maintained version of Exuberant Ctags. It includes support for Go.

The easiest way to install it is to use homebrew:

brew tap universal-ctags/universal-ctags
brew install --HEAD universal-ctags

The following is a recommended ~/.ctags configuration:

--exclude=.git
--extra=+p+q+r
--fields=+a+m+n+S
--sort=no

To build a tags library for the Go standard library, run the following target (run by default):

make tags

Build

To build Go.bbpackage:

Install

The package should be cloned into a working directory. The Makefile will build the sources. The install task will install the package to the correct Application Support directory (either in $HOME/Dropbox/Application Support/BBEdit or $HOME/Library/Application Support/BBEdit).

    git clone https://github.com/ascarter/Go-bbpackage.git
    cd Go-bbpackage
    make install

Update

Pull changes and run make install again:

    cd Go-bbpackage
    git pull
    make clean install

Usage

The best way to use BBEdit with a Go project is to simply launch BBEdit from the project root.

    cd ~/Projects/workspace/src/github.com/<username>/<my cool project>
    bbedit .