history-fuzzy-search

Crates.iohistory-fuzzy-search
lib.rshistory-fuzzy-search
version0.4.0
created_at2024-12-22 09:32:58.801768+00
updated_at2024-12-22 16:44:49.692258+00
descriptionA tool for fuzzy searching through command history
homepagehttps://github.com/jaylu/history-fuzzy-search
repositoryhttps://github.com/jaylu/history-fuzzy-search
max_upload_size
id1491799
size122,086
Jay Lu (jaylu)

documentation

https://github.com/jaylu/history-fuzzy-search

README

History Fuzzy Search (hfs)

history-fuzzy-search (hfs) is a command line tool that enhances your terminal experience by enabling quick and efficient fuzzy searching through your command history. It supports both Bash and Zsh shells.

Features

  • Reads command history from Bash and Zsh history files.
  • Provides fuzzy search to filter through command history.
  • User-friendly interface with keyboard navigation.
  • Copies selected commands to the clipboard for easy pasting.

Usage

After installing hfs, invoke it from the terminal and start typing to search your command history.

Screenshot

  • Use the Up/Down arrow keys to navigate through the search results.
  • Press Enter to copy the selected command to the clipboard.
  • Press Esc to exit the interface.

Installation

Install hfs to ~/.cargo/bin and ensure ~/.cargo/bin is included in your $PATH to run hfs directly from the terminal.

Install via Cargo

cargo install history-fuzzy-search

Install via Git

git clone https://github.com/jaylu/history-fuzzy-search.git
cd history-fuzzy-search
cargo build --release
cargo install --path .

Development

To build and run hfs locally:

# Build the project
cargo build

# Run the project
cargo run

# Install the `hfs` binary in ~/.cargo/bin for local testing
cargo install --path .

Contributing

Contributions are welcome! Open an issue or submit a pull request for enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Commit count: 9

cargo fmt