#search #search-engine #terminal #cs

bin+lib search-in-terminal

A terminal-based search tool

4 releases

new 0.1.3 Nov 26, 2024
0.1.2 Nov 26, 2024
0.1.1 Nov 26, 2024
0.1.0 Nov 25, 2024

#411 in Text processing

Download history 69/week @ 2024-11-19

72 downloads per month

MIT license

49KB
995 lines

Search in Terminal 🔍

English | įŽ€äŊ“中文 | æ—ĨæœŦčĒž

Crates.io Downloads License

Table of Contents

A powerful terminal-based search tool that allows you to search and browse web content directly in your terminal. Supports multiple search engines (Google, Bing, DuckDuckGo) with an elegant TUI interface and convenient keyboard controls.

đŸŽ¯ Why Search in Terminal?

  • Efficiency: Search without leaving your terminal
  • Privacy: Control your user agent and search behavior
  • Customization: Configure search engines and behavior to your needs
  • Speed: Fast and lightweight, with caching support
  • Cross-platform: Works on Linux, macOS, and Windows

Features ✨

  • Multiple Search Engines Support 🌐
    • Google
    • Bing
    • DuckDuckGo
  • Quick Engine Switching 🔄
  • Search Results Caching 💾
  • Beautiful TUI Interface 🎨
  • Convenient Keyboard Controls ⌨ī¸
  • One-click Browser Opening 🚀

Screenshots 📸

Coming soon

Installation đŸ“Ļ

Via Cargo

cargo install search-in-terminal

From Source

git clone https://github.com/zykowal/search-in-terminal.git
cd search-in-terminal
cargo install --path .

Usage 🛠ī¸

After installation, simply run:

st

Keyboard Shortcuts ⌨ī¸

  • i: Input mode
  • <C-u>: Clear input
  • Esc: Exit input mode
  • Enter: Execute search when in input mode
  • e: Switch search engine
  • ↑/↓: Browse search results
  • k/j: Browse search results
  • Enter: Open selected result in browser
  • q: Quit program

Configuration ⚙ī¸

Configuration file location:

  • Linux/macOS: ~/.config/st/config.toml
  • Windows: %APPDATA%\st\config.toml

For detailed configuration options, please see:

Development 👨‍đŸ’ģ

Requirements

  • Rust 2021 edition

Build

git clone https://github.com/zykowal/search-in-terminal.git
cd search-in-terminal
cargo build --release

FAQ 💭

How do I add a custom search engine?

Edit your config file and add a new entry under the [search.engines] section. See the Configuration Guide for details.

How do I change the default search engine?

Set the default_engine option in your config file. See the Configuration Guide for details.

Does it work with proxies?

Sorry! Temporarily unsupported. Use system-level proxy settings.

Contributing 🤝

We welcome contributions! Please see our Contributing Guide for details.

License 📝

MIT License

Author 👤

zykowal

Changelog 📋

See CHANGELOG.md for release details.

Dependencies

~20–34MB
~523K SLoC