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_enough
as above - Run
cle -ce-script bash > ce.sh
to generate the shell script- If you also want to use the
hop
command, you should use:cle -ce-script bash --with-hop > ce.sh
- If you also want to use the
- Source
ce.sh
in 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_enough
as above - Run
cle -hop-script bash > hop.sh
to generate the shell script - Source
hop.sh
in your.bashrc
etc.
Usage
cle
> duck_billed_platypus
> duck_billed_platypus
> my_file.txt
|
> my_file.txt
ce
hop