From 7cb7593b5768e118854b72534c0a3e8077561086 Mon Sep 17 00:00:00 2001 From: syscrusher Date: Fri, 18 Dec 2015 21:41:24 -0600 Subject: [PATCH] v3.4.0 --- CHANGELOG.md | 11 ++++++++--- README.md | 22 ++++++++++++---------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c51da92..1602e3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ -Planned: -- Rework some snippets, like a single import without an alias -- Add support for all go tools like fix, vet, oracle +## 3.4.0 / 2015-12-18 +- [New grammar for Go HTML templates @nanoant](https://github.com/syscrusher/golang.tmbundle/commit/197a72fd128d574e5ec907ec55f51d72c3e163bc) +- [Proper syntax highlighting for types @nanoant](https://github.com/syscrusher/golang.tmbundle/commit/04083c428fd8ca75c9483e9a8ac09421e67b9d29) +- [Don't save document before completion- godef uses stdin @msoap](https://github.com/syscrusher/golang.tmbundle/commit/d1d3a8018d4c0e3eed14288dff38d4e32f5d0e1e) +- [Reapply bugfix when TM_GOPATH not set @tg](https://github.com/syscrusher/golang.tmbundle/commit/4372808d35a64b7934575c0572d0b7de3108cc14) +- [Improve README about env vars @willfaught](https://github.com/syscrusher/golang.tmbundle/commit/9f4fca8be6e6d3ffb99c6e23aa193a30ac075627) +- [Use required commands for goimports and golint @rdwampler](https://github.com/syscrusher/golang.tmbundle/commit/b4427d9df7be869965d7008b86b47d3534fb3f72) + ### 3.3.0 / 2015-11-27 - [Hand crafted, beautiful icons that work on HiDPI and lower resolutions @nanoant](https://github.com/syscrusher/golang.tmbundle/commit/6eac77254101eac2d325bc729b633f243865d87b) diff --git a/README.md b/README.md index a6cb320..4feab49 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -## golang.tmbundle v3.3.0 +## golang.tmbundle v3.4.0 (a TextMate 2 bundle for the go programming language) ### Installation TextMate should detect .go files and load this bundle. This bundle is a fork from [Jim Dovey's bundle](https://github.com/AlanQuatermain/go-tmbundle) with additional improvements merged from around the community. Changes from the original version (see full changelog for more details): +- Substantially improved syntax highlighting (thanks [nanoant](https://github.com/nanoant)) - Support for goimports and golint (thanks [fmccann](https://github.com/fmccann)) -- Improved syntax highlighting (thanks [nanoant](https://github.com/nanoant)) - Users can supply commands via ENV variables (TM\_GO\_DYNAMIC\_GOPATH, TM\_GO\_DYNAMIC\_PKG, TM\_GO\_DYNAMIC\_PKG\_PATH). The bundle will consult these commands if defined to dynamically change the gopath or package based on the current directory. (thanks [fmccann](https://github.com/fmccann)) - all non-run go commands operate on the current directory instead of per file if the package is not defined dynamically. (thanks [tg](https://github.com/tg)). - run and build work on unsaved files (thanks [tg](https://github.com/tg)) @@ -14,14 +14,6 @@ Changes from the original version (see full changelog for more details): - HiDPI completion icons (thanks [nanoant](https://github.com/nanoant)) - bugfixes (thanks everyone!) -To install this bundle manually, open a Terminal window and do: - -```Shell -mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles -cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles -git clone git://github.com/syscrusher/golang.tmbundle.git -``` - This bundle uses gocode for completion, godoc for documentation, golint for linting, and goimports for automatic imports and formatting. These can be installed with the following commands: @@ -32,6 +24,7 @@ go get -u golang.org/x/tools/cmd/goimports go get -u github.com/golang/lint/golint ``` + Set the following TextMate variables in the preferences (adjust paths to your own configuration): TM_GOCODE=/Users/myuser/bin/gocode @@ -41,6 +34,15 @@ Set the following TextMate variables in the preferences (adjust paths to your ow TM_GOIMPORTS=/Users/myuser/bin/goimports TM_GOLINT=/Users/myuser/bin/golint + +To install this bundle manually, open a Terminal window and do: + +```Shell +mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles +cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles +git clone git://github.com/syscrusher/golang.tmbundle.git +``` + ### Features The bundle implements language syntax, completion via gocode, some snippets, and some compile/format/documentation commands for the [Go language](http://golang.org/).