#browser #query #logic #choose #default #alt #csearch

csearch_app

library with core logic for csearch

1 stable release

1.0.0 Mar 28, 2023

#8 in #alt

22 downloads per month
Used in csearch

MIT license

4KB
60 lines

csearch

CLI Utility for the opening your browser from the terminal

Crates.io

Examples

csearch "Some query here" -b Default -s Google

alt

Choose Browser

It works on webbrowser library
On Linux, you can set the environment variable BROWSER

For example in Bash:

export BROWSER="/usr/bin/links"

Or in PowerShell

$env:BROWSER = "/usr/bin/links"

It's also working with browsers like Links

Completions

You can generate common completions for your shell

For example in PowerShell

New-Item -Path ~/.cargo/scripts/ -Type Directory
csearch --completions Bash >> ~/.cargo/scripts/csearch.ps1
Add-Content -Path $PROFILE -Value "Invoke-Expression -Command ~/.cargo/scripts/*.ps1"

Dependencies

~2–15MB
~153K SLoC