13 releases (8 breaking)

0.9.0 Sep 18, 2023
0.8.4 Apr 5, 2023
0.8.3 Mar 31, 2023

#2321 in Command line utilities

Download history 1/week @ 2023-11-11 16/week @ 2023-11-18 28/week @ 2023-11-25 39/week @ 2023-12-02 13/week @ 2023-12-16 26/week @ 2023-12-23 13/week @ 2024-01-06 2/week @ 2024-01-20 38/week @ 2024-01-27 13/week @ 2024-02-03 45/week @ 2024-02-10 195/week @ 2024-02-17

291 downloads per month

MIT license

18KB
410 lines

dictate

Lookup words in dictionaryapi.dev right from the terminal without interrupting your workflow.

📦 Installation

🚀 Usage

  • Lookup "hello" in the dictionary

    dictate lookup hello
    

    NOTE: This also caches the output for later lookups.

  • Clean up the cached entries

    dictate clean -c
    

💻 Shell Completion

  • Bash

    1. Run the following

      mkdir -p ~/.local/share/bash-completion/completions
      dictate complete bash > ~/.local/share/bash-completion/completions/rustup
      
    2. Restart bash and you should have tab-completion now.

  • Zsh

    1. Append ~/.zfunc to fpath in your zsh config

      NOTICE: Make sure to insert the following line before initializing compinit.

      fpath+=("$HOME/.zfunc")
      
    2. Create the appended directory and dump completion definition to ~/.zfunc/_dictate

      mkdir -p ~/.zfunc
      dictate complete zsh > ~/.zfunc/_dictate
      
    3. 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

    1. Run the following

      mkdir -p ~/.config/fish/completions
      dictate complete fish > ~/.config/fish/completions/rustup.fish
      
    2. Restart fish and you should have tab-completion now.

Dependencies

~13–30MB
~467K SLoC