Skip to content

pascalbehmenburg/zito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zito

Does search code, fast.

Usage

In order to find code use:

Usage: zito find [OPTIONS] <QUERY> [SEARCH_LOC]

Arguments:
  <QUERY>       The query to search for
  [SEARCH_LOC]  Which folder to search in [default: ./]

Options:
  -i, --index-dir <INDEX_DIR>  In which folder is or will the index.zito file be stored Make sure it is the index that was used to index the search_loc [default: ./]
  -r, --regex                  Whether to interpret the query as a regex
  -h, --help                   Print help

As an example you can search this very codebase like this:

zito find main ./

Current performance

Here is the execution of the current state on a 13inch Macbook Air M3 2024 with 16GB RAM.

Searching the linux kernel source code for file like this (pre-existing index):

❯ cargo run --release -- find file ./linux/kernel -i ./linux/kernel/
    Finished `release` profile [optimized] target(s) in 0.03s
     Running `target/release/zito find file ./linux/kernel -i ./linux/kernel/`
Searching for query: file
Found 6076 matches in 10937 microseconds.

About

Fast local trigram-based code search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages