Search with duckduckgo from the command-line, fuzzy select the results.
Project description
ddgz
@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️
Duckduckgo search using fzf. This is a wrapper around the duckduckgo command-line util ddgr which uses the fuzzy search tool, fzf, to select a result and then writes the url of the result to standard output.
Attribution
This tool is effectively a thin wrapper around ddgr and python fzf
Installation
pipx install ddgz
Usage
ddgz hello world
You likely want to use the result, my motivation was to place it on the clipboard while editing documents, for which I use this.
ddgz | xclip -selection clipboard -i
I personally define a snippet (which I call ddcli) for the above using my zsh snippet manager zshnip.
Alternatives and prior work
ddgr can output results to JSON, this can be used for arbitrary purposes.
I tried to find tools to search google. I found googler but this was deprecated and I could not install this with pipx
About me
I am @readwithai, I make tools related to productivity, agency, research and reading sometimes using Obsidian.
If this is the sort of tool that interests you, then you can.
- Follow me on X where I tend to post about this sort of thing.
- Check out my list of command line productivity tools
- Read the Technical Miscellany section of my blog
If you are interested in computer-aided reading which is my interest you might like to start with my somewhat academic Review of note taking with Obsidian
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ddgz-1.0.0.tar.gz.
File metadata
- Download URL: ddgz-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be353b39cb8e87f2c6d8e135e54809a9ec81ad39e1cc386e7ce332eff9726099
|
|
| MD5 |
a57b3d9d9b5bd71c92d5ae3fac32e8b9
|
|
| BLAKE2b-256 |
744f4466af12a6ce65a5f1574113cfa9ec62f1f258d524c370c9047755e67d9f
|