README.md 733 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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
``````