Crates.io | close_enough |
lib.rs | close_enough |
version | |
source | src |
created_at | 2017-10-22 13:27:22.753476+00 |
updated_at | 2025-02-25 21:41:15.393369+00 |
description | Simple fuzzy-searching function and command line tool. |
homepage | https://github.com/mistodon/close_enough |
repository | https://github.com/mistodon/close_enough |
max_upload_size | |
id | 36567 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Simple fuzzy-searching function and command line tool.
cargo install close_enough
ce
commandThis is a cd
-like command for fuzzily changing directories. See examples further down.
close_enough
as abovecle -ce-script bash > ce.sh
to generate the shell script
hop
command, you should use: cle -ce-script bash --with-hop > ce.sh
ce.sh
in your .bashrc
, .profile
, or similarhop
commandThis 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.
~$ 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 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 ~
~$
~$ ce my dir 1
~/my/directories/d1$ ce .. 2
~/my/directories/d2$ cd
~$ # If you used --with-hop then hop will have tracked the d1 and d2 dirs
~$ hop to d1
~/my/directories/d1$ hop to d2
~/my/directories/d2$