File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ Go::godef</string>
13
13
<string >selection </string >
14
14
<key >inputFormat </key >
15
15
<string >text </string >
16
+ <key >keyEquivalent </key >
17
+ <string >^. </string >
16
18
<key >name </key >
17
19
<string >Go to Definition </string >
18
20
<key >outputCaret </key >
Original file line number Diff line number Diff line change 5
5
require ENV [ 'TM_SUPPORT_PATH' ] + '/lib/tm/executor'
6
6
require ENV [ 'TM_SUPPORT_PATH' ] + '/lib/tm/process'
7
7
require ENV [ 'TM_SUPPORT_PATH' ] + '/lib/tm/save_current_document'
8
+ require 'pathname'
8
9
9
10
# TextMate's special GOPATH used in .tm_properties files prepended to the environment's GOPATH
10
11
ENV [ 'GOPATH' ] = ( ENV . has_key? ( 'TM_GOPATH' ) ? ENV [ 'TM_GOPATH' ] : '' ) +
@@ -119,7 +120,8 @@ def Go::godef
119
120
120
121
if err . nil? || err == ''
121
122
file_details = out . split ( ':' )
122
- TextMate . go_to ( :file => file_details [ 0 ] ,
123
+ file = Pathname . new ( file_details [ 0 ] ) . realpath
124
+ TextMate . go_to ( :file => file ,
123
125
:line => file_details [ 1 ] ,
124
126
:column => file_details [ 2 ] . to_i )
125
127
else
You can’t perform that action at this time.
0 commit comments