dictate

Crates.iodictate
lib.rsdictate
version0.9.0
sourcesrc
created_at2023-02-22 18:14:25.249377
updated_at2023-09-18 10:32:01.853926
descriptionCLI utility for looking up words in online dictionary
homepage
repositoryhttps://github.com/utilyre/dictate
max_upload_size
id792038
size60,887
Amirabbas Fazelinia (utilyre)

documentation

README

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.

Commit count: 120

cargo fmt