From c88f8b299cc67980c09c8cd5f557f5410e793831 Mon Sep 17 00:00:00 2001 From: Matthew Lewin Date: Sat, 26 Mar 2016 20:12:13 -0700 Subject: [PATCH] Add a very simple plugin to call issue Dash queries from the command-line --- plugins/dash/README.md | 14 ++++++++++++++ plugins/dash/dash.plugin.zsh | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 plugins/dash/README.md create mode 100644 plugins/dash/dash.plugin.zsh diff --git a/plugins/dash/README.md b/plugins/dash/README.md new file mode 100644 index 000000000..52f9689d7 --- /dev/null +++ b/plugins/dash/README.md @@ -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 *\* (Ex.: `dash bash` ) + +$ dash *\:\* (Ex.: `dash ios:UITableView` ) + +Note that ** is the keyword associated with the docset, as shown on the Docsets preference pane of Dash preferences. + diff --git a/plugins/dash/dash.plugin.zsh b/plugins/dash/dash.plugin.zsh new file mode 100644 index 000000000..7e6f7f690 --- /dev/null +++ b/plugins/dash/dash.plugin.zsh @@ -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" +}