Skip to content

gingerbeardman/Dash.tmbundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dash.tmbundle

This bundle lets you to launch Dash from TextMate with automatic keyword lookup.

Created by Matt Sephton, http://www.gingerbeardman.com

Features

Launches Dash to lookup current word.

Current word is either the current selection, or the word in which the cursor is currently located.

Options

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.

Internals

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

Requirements

License

Dash.tmbundle is made available under a Creative Commons Attribution-Share Alike 3.0 Unported License.

Changelog

2012-07-16

  • Initial public release

About

Bundle to add Dash documentation lookup to TextMate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published