summaryrefslogtreecommitdiff
path: root/plugins/dnote/README.md
diff options
context:
space:
mode:
authorSung Won Cho <hello@sung.io>2019-06-16 03:52:22 +1000
committerRobby Russell <robby@planetargon.com>2019-06-15 10:52:22 -0700
commit5f18dbf895675ff22dcbe2afa78b72b74350ea58 (patch)
treedc9e9a14dac39e5bc84abdf619fd31c8c337a74b /plugins/dnote/README.md
parent36e13f4803f2fef7d7ba3109cb0bd913de78cfea (diff)
downloadzsh-5f18dbf895675ff22dcbe2afa78b72b74350ea58.tar.gz
zsh-5f18dbf895675ff22dcbe2afa78b72b74350ea58.tar.bz2
zsh-5f18dbf895675ff22dcbe2afa78b72b74350ea58.zip
Add a completion plugin for dnote (#7885)
Diffstat (limited to 'plugins/dnote/README.md')
-rw-r--r--plugins/dnote/README.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/plugins/dnote/README.md b/plugins/dnote/README.md
new file mode 100644
index 000000000..e1b9b7044
--- /dev/null
+++ b/plugins/dnote/README.md
@@ -0,0 +1,51 @@
+# Dnote Plugin
+
+This plugin adds auto-completion for [Dnote](https://dnote.io) project.
+
+To use it, add `dnote` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(dnote)
+```
+
+## Usage
+
+At the basic level, this plugin completes all Dnote commands.
+
+```zsh
+$ dnote a(press <TAB> here)
+```
+
+would result in:
+
+```zsh
+$ dnote add
+```
+
+For some commands, this plugin dynamically suggests matching book names.
+
+For instance, if you have three books that begin with 'j': 'javascript', 'job', 'js',
+
+```zsh
+$ dnote view j(press <TAB> here)
+```
+
+would result in:
+
+```zsh
+$ dnote v j
+javascript job js
+```
+
+As another example,
+
+```zsh
+$ dnote edit ja(press <TAB> here)
+```
+
+would result in:
+
+
+```zsh
+$ dnote v javascript
+``````