diff --git a/Commands/Open Require.tmCommand b/Commands/Open Require.tmCommand new file mode 100644 index 0000000..b1c4ddf --- /dev/null +++ b/Commands/Open Require.tmCommand @@ -0,0 +1,33 @@ + + + + + beforeRunningCommand + nop + command + #!/usr/bin/env ruby + +file = ENV['TM_CURRENT_WORD'].to_s + '.rb' +dir = $:.find { |d| File.exist?(File.join(d, file)) } + +if dir && file then + ENV['FILE'] = File.join(dir, file) + %x{ "$TM_SUPPORT_PATH/bin/mate" "$FILE" } +else + puts "File not found." +end + + input + none + keyEquivalent + @D + name + Open Require + output + showAsTooltip + scope + source.ruby + uuid + 8646378E-91F5-4771-AC7C-43FC49A93576 + + diff --git a/info.plist b/info.plist index 016227f..9f9a996 100644 --- a/info.plist +++ b/info.plist @@ -24,11 +24,13 @@ items + 35222962-C50D-4D58-A6AE-71E7AD980BE4 8C102BE9-6E49-11D9-A933-000D93589AF6 5289EE40-86B8-11D9-A8D4-000A95E13C98 569C9822-8C41-4907-94C7-1A8A0031B66D ------------------------------------ 63F3B3B7-CBE2-426B-B551-657733F3868B + 8646378E-91F5-4771-AC7C-43FC49A93576 EE5F19BA-6C02-11D9-92BA-0011242E4184 ------------------------------------ EE5F1FB2-6C02-11D9-92BA-0011242E4184 @@ -348,12 +350,14 @@ Ruby ordering + 35222962-C50D-4D58-A6AE-71E7AD980BE4 8C102BE9-6E49-11D9-A933-000D93589AF6 5289EE40-86B8-11D9-A8D4-000A95E13C98 569C9822-8C41-4907-94C7-1A8A0031B66D EE5F19BA-6C02-11D9-92BA-0011242E4184 76FCF165-54CB-4213-BC55-BD60B9C6A3EC 63F3B3B7-CBE2-426B-B551-657733F3868B + 8646378E-91F5-4771-AC7C-43FC49A93576 EE5F1FB2-6C02-11D9-92BA-0011242E4184 FBFC214F-B019-4967-95D2-028F374A3221 1AD6A138-2E89-4D6A-AB3F-416BF9CE968D