This bundle lets you to launch Dash from TextMate with automatic keyword lookup.
Created by Matt Sephton, http://www.gingerbeardman.com
Launches Dash to lookup current word.
Current word is either the current selection, or the word in which the cursor is currently located.
You can add Dash lookup to other languages by adding their scopes to the command using the TextMate bundle editor.
By default the command is enabled only for PHP and JavaScript.
You may also want to duplicate the command, once for each language and add a language qualifier in the lookup.
The code that does the hard work is as follows:
if grep <<<${TM_CURRENT_WORD:-!} -Esq '[a-zA-Z0-9_]+'
then
open 'dash://'$TM_CURRENT_WORD
fi
- TextMate http://macromates.com
- Dash http://kapeli.com/dash/
Dash.tmbundle is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.
2012-07-16
- Initial public release