13 releases (8 breaking)
0.9.0 | Sep 18, 2023 |
---|---|
0.8.4 | Apr 5, 2023 |
0.8.3 | Mar 31, 2023 |
#2059 in Command line utilities
48 downloads per month
18KB
410 lines
dictate
Lookup words in dictionaryapi.dev right from the terminal without interrupting your workflow.
📦 Installation
-
cargo install dictate
🚀 Usage
-
Lookup "hello" in the dictionary
dictate lookup hello
NOTE: This also caches the output for later
lookup
s. -
Clean up the cached entries
dictate clean -c
💻 Shell Completion
-
Bash
-
Run the following
mkdir -p ~/.local/share/bash-completion/completions dictate complete bash > ~/.local/share/bash-completion/completions/rustup
-
Restart bash and you should have tab-completion now.
-
-
Zsh
-
Append
~/.zfunc
tofpath
in your zsh configNOTICE: Make sure to insert the following line before initializing
compinit
.fpath+=("$HOME/.zfunc")
-
Create the appended directory and dump completion definition to
~/.zfunc/_dictate
mkdir -p ~/.zfunc dictate complete zsh > ~/.zfunc/_dictate
-
Restart zsh and you should have tab-completion now.
NOTE: In case it's not working yet, delete
~/.zcompdump
and restart your shell again. -
-
Fish
-
Run the following
mkdir -p ~/.config/fish/completions dictate complete fish > ~/.config/fish/completions/rustup.fish
-
Restart fish and you should have tab-completion now.
-
Dependencies
~15–30MB
~457K SLoC