Permalink
Commits on Jul 17, 2013
  1. Merge pull request #41 from sorbits/master

    Improve indentation and folding rules, add test⇥ snippet and “open package” command
    committed Jul 17, 2013
Commits on Jul 15, 2013
  1. Keys in map literals no longer matched as having zero indent

    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.
    sorbits committed Jul 15, 2013
  2. Lines with an initial closing brace now always decrease indent

    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.
    sorbits committed Jul 15, 2013
Commits on Jul 14, 2013
  1. Add “Open Package” (⇧⌘D), uses current line’s import path

    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.
    sorbits committed Jul 14, 2013
Commits on Jul 13, 2013
  1. Remove erroneous escapes in package snippet (pkg⇥)

    These were required in TextMate 1.x but are inserted as literal backslashes in 2.0.
    sorbits committed Jul 13, 2013
  2. Fix links in potential output from ‘Reformat Document’ (⌃⇧H)

    When there are errors we re-run the command via TextMate::Executor, which then takes care of hyperlinking errors in the output.
    sorbits committed Jul 13, 2013
  3. Improve indentation rules

    For the code I tested, TextMate’s applied indentation is now identical to what you get from ‘gofmt’.
    sorbits committed Jul 13, 2013
  4. Add snippet to create test boilerplate (test⇥)

    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.
    sorbits committed Jul 11, 2013
Commits on Jul 8, 2013
  1. Merge pull request #40 from sorbits/master

    Make “Go → Test” run tests for current file and other minor changes
    committed Jul 8, 2013
  2. Change key equivalents: Go → Test is now ⇧⌘R and Go → Build is ⌘B

    Also rename “Go → Test” to “Go → Run Tests” and move it up below the “Go → Run” action.
    sorbits committed Jul 8, 2013
  3. Fix links in error output when running untitled documents

    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.
    sorbits committed Jul 8, 2013
  4. Fix “Go → Test” to run tests for current file

    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.
    sorbits committed Jul 8, 2013
Commits on Jul 4, 2013
  1. Merge branch 'master' of git://github.com/sorbits/go.tmbundle into so…

    …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
    Jim Dovey committed Jul 4, 2013
  2. Merge pull request #38 from dhowden/var-language-fix

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

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

    Remove invalid "->" channel operator.
    committed Jul 4, 2013
  5. Exclude whitespace in function declarations from variable scope

    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.
    sorbits committed Jul 4, 2013
  6. Do not scope whitespace as a variable

    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.
    sorbits committed Jul 4, 2013
Commits on Jul 3, 2013
  1. Implementation tweaks

    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.
    sorbits committed Jul 3, 2013
  2. Change (advanced) completion command’s key equivalent to ⌥⎋

    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’.
    sorbits committed Jul 3, 2013
  3. Require ‘gocode’ via TextMate 2’s required command system

    This leads to a better user experience and allow the user to set TM_GOCODE instead of updating PATH.
    sorbits committed Jul 3, 2013
Commits on Apr 15, 2013
  1. Remove invalid "->" channel operator.

    Rename scope to highlighted "<-" as operator.
    dhowden committed Apr 15, 2013
  2. Fixed: variable init scoping (var...)

    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 ":=".
    dhowden committed Apr 15, 2013
  3. Reclaim Esc for default TM completion.

    COGODE completion is now triggered on Opt-Esc.
    dhowden committed Apr 15, 2013
  4. Merge pull request #35 from dhowden/language-fixes

    Language fixes
    committed Apr 15, 2013
  5. Merge pull request #33 from dhowden/if-err-snippet

    Added snippet for if err != nil statement.
    committed Apr 15, 2013
  6. Merge pull request #32 from dhowden/fix-gofmt-soft-tabs

    Fix gofmt tabs/spaces options
    committed Apr 15, 2013
Commits on Apr 9, 2013
  1. Fixed: variable initialisation scoping.

    Previously all space and commas were matched into a variable
    scope, which caused problems with word selection.
    dhowden committed Apr 9, 2013
Commits on Mar 16, 2013
  1. Fix gofmt tabs/spaces options

    dhowden committed Mar 16, 2013
Commits on Feb 7, 2013
  1. Merge pull request #31 from robsonpeixoto/install-doc

    Fix install doc
    committed Feb 7, 2013