Add a very simple plugin to call issue Dash queries from the command-line

This commit is contained in:
Matthew Lewin 2016-03-26 20:12:13 -07:00
parent 5365cca76a
commit c88f8b299c
2 changed files with 19 additions and 0 deletions

14
plugins/dash/README.md Normal file
View File

@ -0,0 +1,14 @@
## dash
**Maintainer:** [@MattLewin](https://github.com/MattLewin)
This plugin supplies an easy way to query Dash from the command-line
### Usage
$ dash *\<query\>* (Ex.: `dash bash` )
$ dash *\<keyword\>:\<query\>* (Ex.: `dash ios:UITableView` )
Note that *<keyword>* is the keyword associated with the docset, as shown on the Docsets preference pane of Dash preferences.

View File

@ -0,0 +1,5 @@
# Send everything on the command line to Dash, without having to
# type the whole 'open "dash://" business
function dash() {
open "dash://$1"
}