close_enough
Simple fuzzy-searching function and command line tool.
Installation
cargo install close_enough
Installing the ce command
This is a cd-like command for fuzzily changing directories. See examples further down.
- Install
close_enoughas above - Run
cle -ce-script bash > ce.shto generate the shell script- If you also want to use the
hopcommand, you should use:cle -ce-script bash --with-hop > ce.sh
- If you also want to use the
- Source
ce.shin your.bashrc,.profile, or similar
Installing the hop command
This allows you to track recently used folders (you can define wrappers around cd or ce to do this automatically) and hop directly to them with a fuzzy match.
- Install
close_enoughas above - Run
cle -hop-script bash > hop.shto generate the shell script - Source
hop.shin your.bashrcetc.
Usage
cle
> duck_billed_platypus
> duck_billed_platypus
> my_file.txt
|
> my_file.txt
ce
hop