close_enough 0.2.0

Simple fuzzy-searching function and command line tool.
Documentation

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.

  1. Install close_enough as above
  2. Run cle -ce-script bash > ce.sh to generate the shell script
  3. Source ce.sh in your .bashrc, .profile, or similar

Usage

cle

~$ cle duck --inputs blue_and_gold_macaw duck_billed_platypus angry_dog
> duck_billed_platypus

~$ cle dbp --inputs blue_and_gold_macaw duck_billed_platypus angry_dog
> duck_billed_platypus
~$ ls
> my_file.txt  their_file.txt  your_file.txt
~$ ls | cle my
> my_file.txt

ce

~$ ce my lo dir pa
~/my/long/directory/path$
~/my/long/directory/path$ ce ..
~/my/long/directory$
~/my/long/directory/path$ ce ..3
~/my$
~/my/long/directory/path$ ce ..my other dir pa
~/my/other/directory/path$
~$ ce / u lo sh
/usr/local/share$ ce ~
~$