Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jul 17, 2013
  1. Merge pull request #41 from sorbits/master

    authored
    Improve indentation and folding rules, add test⇥ snippet and “open package” command
Commits on Jul 15, 2013
  1. @sorbits

    Keys in map literals no longer matched as having zero indent

    sorbits authored
    The rule was intended to match labels, which look the same as key literals.
    
    Now ‘foo:’ is only matched as a label if it has no leading whitespace.
    
    Given the simplicity of the Go grammar, we could actually match map literals and give them a different scope, and thus have different indent patterns for when we are inside a map literal.
  2. @sorbits

    Lines with an initial closing brace now always decrease indent

    sorbits authored
    The issue is when code has been partially typed, e.g.:
    
        } e‸
    
    Here the added ‘e’ (as in ‘else’) would previously cause the line to no longer be matched as decreasing the indent, which lead to suboptimal user experience.
Commits on Jul 14, 2013
  1. @sorbits

    Add “Open Package” (⇧⌘D), uses current line’s import path

    sorbits authored
    If the current line is not an import statement then it will prompt the user for the package to open. Default dialog text is the contents of the search clipboard.
    
    The package is located via ‘GOPATH’ and ‘GOROOT’ (obtained via ‘go env’).
    
    If the package contains a single go file (excluding tests) then that file will be opened, otherwise the package is opened as a new project.
Commits on Jul 13, 2013
  1. @sorbits

    Remove erroneous escapes in package snippet (pkg⇥)

    sorbits authored
    These were required in TextMate 1.x but are inserted as literal backslashes in 2.0.
  2. @sorbits

    Fix links in potential output from ‘Reformat Document’ (⌃⇧H)

    sorbits authored
    When there are errors we re-run the command via TextMate::Executor, which then takes care of hyperlinking errors in the output.
  3. @sorbits

    Improve indentation rules

    sorbits authored
    For the code I tested, TextMate’s applied indentation is now identical to what you get from ‘gofmt’.
  4. @sorbits
  5. @sorbits

    Add snippet to create test boilerplate (test⇥)

    sorbits authored
    Use this in a new empty test file to get started.
    
    This goes well together with the new behavior of “Go to Counterpart” (alpha.9447) which allow ⌥⌘↑ to be used to create new test files.
Commits on Jul 8, 2013
  1. Merge pull request #40 from sorbits/master

    authored
    Make “Go → Test” run tests for current file and other minor changes
  2. @sorbits

    Change key equivalents: Go → Test is now ⇧⌘R and Go → Build is ⌘B

    sorbits authored
    Also rename “Go → Test” to “Go → Run Tests” and move it up below the “Go → Run” action.
  3. @sorbits

    Fix links in error output when running untitled documents

    sorbits authored
    We now use the default auto-linking of ‘«file»:«line»[:«column»]’ as it handles the case where we are executing a temporary file due to the source document being untitled.
  4. @sorbits

    Fix “Go → Test” to run tests for current file

    sorbits authored
    The current file can either be a regular source file (“foo.go”) or the test file (“foo_test.go”). In both cases though, the test/non-test counterpart must exist for this command to work.
    
    Previously we would run ‘go test «path»’ which fails since ‘go test’ expects a package. Run ‘go help packages’ for how a package is defined.
Commits on Jul 4, 2013
  1. Merge branch 'master' of git://github.com/sorbits/go.tmbundle into so…

    Jim Dovey authored
    …rbits-master
    
    * 'master' of git://github.com/sorbits/go.tmbundle:
      Exclude whitespace in function declarations from variable scope
      Do not scope whitespace as a variable
      Enable auto-scroll for command output (run/compile/test)
      Implementation tweaks
      Change (advanced) completion command’s key equivalent to ⌥⎋
      Require ‘gocode’ via TextMate 2’s required command system
  2. Merge pull request #38 from dhowden/var-language-fix

    authored
    Fixed: variable init scoping (var...)
  3. Merge pull request #37 from dhowden/reclaim-esc-for-default-completion

    authored
    Reclaim Esc for default TM completion.
  4. Merge pull request #36 from dhowden/remove-invalid-channel-op

    authored
    Remove invalid "->" channel operator.
  5. @sorbits

    Exclude whitespace in function declarations from variable scope

    sorbits authored
    This improves word movement, though ideally we would match the content correctly, as we presently do scope asterisk, braces, and similar, as variable, not to mention that only part of the content is actually variables, the rest are type info.
  6. @sorbits

    Do not scope whitespace as a variable

    sorbits authored
    Previously we would scope a declaration like ‘var x int = 0’ as ‘variable.other.go’ which would treat it as a single word for word movement, selection, buffer completion, and similar functionality.
  7. @sorbits
Commits on Jul 3, 2013
  1. @sorbits

    Implementation tweaks

    sorbits authored
    Ask TextMate to “save modified files” and use TextMate.save_if_untitled in the command, which will create a temporary file for untitled documents. The advantage is that whenever there is a file, TextMate will handle saving it, rather than delegate this to the command.
    
    Limit TextMate.make_project_master_current_document and the ‘:use_hashbang’ argument to the commands that call TextMate.executor. The method will check if the user has setup a different master file, and if so, change TM_FILEPATH to point to the master file, which isn’t relevant for Run (⌘R) and documentation lookups. Likewise, the ‘:use_hashbang’ argument is only relevant for TextMate.executor.
    
    The ‘:interactive_input’ argument is no longer supported and has been removed.
  2. @sorbits

    Change (advanced) completion command’s key equivalent to ⌥⎋

    sorbits authored
    Previously this command eclipsed the simple buffer completion, of which it is not a superset, so we should keep both actions around, especially since this command does not work before the user has installed ‘gocode’.
  3. @sorbits

    Require ‘gocode’ via TextMate 2’s required command system

    sorbits authored
    This leads to a better user experience and allow the user to set TM_GOCODE instead of updating PATH.
Commits on Apr 15, 2013
  1. @dhowden

    Remove invalid "->" channel operator.

    dhowden authored
    Rename scope to highlighted "<-" as operator.
  2. @dhowden

    Fixed: variable init scoping (var...)

    dhowden authored
    Previously all space and commas were matched into a variable
    scope, which caused problems with word selection.
    
    Similar to previous fix for variable initialisation using ":=".
  3. @dhowden

    Reclaim Esc for default TM completion.

    dhowden authored
    COGODE completion is now triggered on Opt-Esc.
  4. Merge pull request #33 from dhowden/if-err-snippet

    authored
    Added snippet for if err != nil statement.
  5. Merge pull request #32 from dhowden/fix-gofmt-soft-tabs

    authored
    Fix gofmt tabs/spaces options
Commits on Apr 9, 2013
  1. @dhowden

    Fixed: variable initialisation scoping.

    dhowden authored
    Previously all space and commas were matched into a variable
    scope, which caused problems with word selection.
  2. @dhowden
  3. @dhowden
Commits on Mar 16, 2013
  1. @dhowden
  2. @dhowden

    Fix gofmt tabs/spaces options

    dhowden authored
Commits on Feb 7, 2013
Something went wrong with that request. Please try again.