| Crates.io | looneygrep |
| lib.rs | looneygrep |
| version | 0.1.0 |
| created_at | 2025-06-03 21:42:39.219185+00 |
| updated_at | 2025-06-03 21:42:39.219185+00 |
| description | A powerful command-line search tool with web page support and replace functionality. |
| homepage | |
| repository | https://github.com/looneyrichie/looneygrep |
| max_upload_size | |
| id | 1699545 |
| size | 74,811 |
Looneygrep is executable as lg for those who wish to type less
Looneygrep is a feature-rich, blazing-fast command-line text search tool created by Richie Looney as a modern alternative to grep and ripgrep.
It supports searching files, web pages, and even interactive replacement of matches.
--allFrom crates.io:
cargo install looneygrep
Or clone and build manually:
git clone https://github.com/looneyrichie/looneygrep.git
cd looneygrep
cargo build --release
looneygrep <query> <filename> [--ignore-case] [--replace] [--context N] [--url <url>] [--all]
Search a file:
looneygrep foo myfile.txt
Search a web page:
looneygrep Rust --url https://www.rust-lang.org
Case-insensitive search with context:
looneygrep error log.txt --ignore-case --context 2
Prompt to replace matches:
looneygrep oldword file.txt --replace
Search all files in the current directory:
looneygrep TODO --all
You can also use Looneygrep as a library in your Rust code:
use looneygrep::{Config, run};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Config {
query: "foo".to_string(),
file_path: "bar.txt".to_string(),
ignore_case: false,
replace: false,
url: None,
context: 0,
search_all: false,
};
run(config)?;
Ok(())
}
Licensed under either of
Richie Looney (richieandkayla@gmail.com)
Contributions welcome!