diff --git a/Commands/Compile.tmCommand b/Commands/Compile.tmCommand
index bddf571..970fff1 100644
--- a/Commands/Compile.tmCommand
+++ b/Commands/Compile.tmCommand
@@ -17,7 +17,7 @@ Go::go "build", :verb => "Compiling"
inputFormat
text
keyEquivalent
- @k
+ @b
name
Compile
outputCaret
diff --git a/Commands/Test.tmCommand b/Commands/Test.tmCommand
index 862991e..c5be8aa 100644
--- a/Commands/Test.tmCommand
+++ b/Commands/Test.tmCommand
@@ -17,9 +17,9 @@ Go::go "test", :verb => "Testing"
inputFormat
text
keyEquivalent
- ~@t
+ @R
name
- Test
+ Run Tests
outputCaret
afterOutput
outputFormat
diff --git a/Support/gomate.rb b/Support/gomate.rb
index 53b5a8d..5e765e6 100755
--- a/Support/gomate.rb
+++ b/Support/gomate.rb
@@ -20,17 +20,22 @@ def Go::go(command, options={})
TextMate::Executor.make_project_master_current_document
args = options[:args] ? options[:args] : []
- opts = {:interactive_input => false, :use_hashbang => false, :version_args => ['version'], :version_regex => /\Ago version (.*)/}
+ opts = {:use_hashbang => false, :version_args => ['version'], :version_regex => /\Ago version (.*)/}
opts[:verb] = options[:verb] if options[:verb]
- # At this time, we will always run 'go' against a single file. In the future there may be new
- # commands that will invalidate this but until then, might as well start simple.
- args.push(ENV['TM_FILEPATH'])
+ if command == 'test' && ENV['TM_FILENAME'] =~ /(_test)?(\.go)$/
+ basename = $`
+ args.push("#{basename}.go")
+ args.push("#{basename}_test.go")
+ opts[:chdir] = ENV['TM_DIRECTORY']
+ else
+ # At this time, we will always run 'go' against a single file. In the future there may be new
+ # commands that will invalidate this but until then, might as well start simple.
+ args.push(ENV['TM_FILEPATH'])
+ end
args.push(opts)
- TextMate::Executor.run(go_cmd, command, *args) do |str, type|
- Go::link_errs(str, type)
- end
+ TextMate::Executor.run(go_cmd, command, *args)
end
def Go::godoc
diff --git a/info.plist b/info.plist
index 3e473db..eb920cb 100644
--- a/info.plist
+++ b/info.plist
@@ -17,9 +17,8 @@
items
0B3C3EB0-9F51-4997-A87D-ECA507D8E31E
- 73628139-0077-4F09-9B72-77546D7C2D2D
0F6A8710-54FC-48F5-9D02-D093DA001D17
- 20810F68-79E2-4D36-B222-6374BDEAB7B9
+ 73628139-0077-4F09-9B72-77546D7C2D2D
------------------------------------
7BCFCFC8-9152-4638-8436-E17B0C754C8D
B0271A46-F6EF-4D2F-95A6-EC067E69155C