From b8c5f160014112a4afa5a90ca92505b1b8ab0bc2 Mon Sep 17 00:00:00 2001 From: Ville Lautanala Date: Sun, 22 Feb 2009 12:43:24 +0200 Subject: [PATCH] Added APIdock documentation command --- Commands/Documentation for Word.tmCommand | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Commands/Documentation for Word.tmCommand diff --git a/Commands/Documentation for Word.tmCommand b/Commands/Documentation for Word.tmCommand new file mode 100644 index 0000000..56b5f07 --- /dev/null +++ b/Commands/Documentation for Word.tmCommand @@ -0,0 +1,27 @@ + + + + + beforeRunningCommand + nop + command + #!/usr/bin/env ruby +url = "http://apidock.com/rails/search/quick?query=" + ENV['TM_CURRENT_WORD'] +puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>" + + fallbackInput + word + input + selection + keyEquivalent + ^h + name + Documentation for Word + output + showAsHTML + scope + source.ruby.rails, text.html.ruby, text.haml + uuid + 32F30207-D827-46D9-889A-451C35269D52 + +