Add a very simple plugin to call issue Dash queries from the command-line
This commit is contained in:
parent
5365cca76a
commit
c88f8b299c
14
plugins/dash/README.md
Normal file
14
plugins/dash/README.md
Normal 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.
|
||||||
|
|
5
plugins/dash/dash.plugin.zsh
Normal file
5
plugins/dash/dash.plugin.zsh
Normal 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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user