mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-16 02:40:08 +00:00
51 lines
733 B
Markdown
51 lines
733 B
Markdown
# 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
|
|
``````
|