diff --git a/Commands/Documentation for Word.plist b/Commands/Documentation for Word.plist new file mode 100644 index 0000000..d9d98f9 --- /dev/null +++ b/Commands/Documentation for Word.plist @@ -0,0 +1,30 @@ + + + + + beforeRunningCommand + nop + command + # index created using: curl -s 'http://devguru.com/technologies/javascript/index.asp'|grep -o '<a href="[0-9]*.asp">[a-z][a-zA-Z]*</a>'|perl -pe 's/<a href="([^"]*)">([^<]*)<\/a>/$2\t$1/'|sort|uniq|gzip >dev_guru_index.gz + +ref=$(zgrep -w "^${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}" "$TM_BUNDLE_SUPPORT/dev_guru_index.gz"|cut -f2) + +[[ -n "$ref" ]] && exit_show_html "<meta http-equiv='Refresh' content='0;URL=http://devguru.com/technologies/javascript/$ref'>" + +echo "No documentation found." + fallbackInput + word + input + selection + keyEquivalent + ^h + name + Documentation for Word / Selection + output + showAsTooltip + scope + source.js + uuid + B4874A14-2491-465A-A349-61E4EBCF4700 + + diff --git a/Support/dev_guru_index.gz b/Support/dev_guru_index.gz new file mode 100644 index 0000000..b657fbc Binary files /dev/null and b/Support/dev_guru_index.gz differ