a smarter
cdcommand
???
a smarter
cdcommand
???
the crate (of course it's written in rust!) page starts with thanks to two AI companies i've never heard of (of course it does!)
here's the "tutorial":
z foo # cd into highest ranked directory matching foo
z foo bar # cd into highest ranked directory matching foo and bar
z foo / # cd into a subdirectory starting with foo
z ~/foo # z also works like a regular cd command
z foo/ # cd into relative path
z .. # cd one level up
z - # cd into previous directory
zi foo # cd with interactive selection (using fzf)
z foo<SPACE><TAB> # show interactive completions (bash 4.4+/fish/zsh only)
highest ranked directory?! directory starting with?!
call me old fashioned but i just select the directory i want by path
@dysfun
see deez nuts
@dysfun alias cd=pushd
@dysfun presumably one that moves you to the directory you *wanted* rather than the one you typed?
@dysfun cleans the directory when you move to them, so you can start with a blank slate
@dysfun also just a massively unhinged way to reference things imo. the "cd into the highest ranked dir matching this path spec" idea is kinda neat imo (useful if you know the specifically named subdir you want but it's buried in some deep nested structure) but the syntax they picked here sucks ass.
@dysfun This isn't even anything new, z for smart cd is something people have been implementing and reimplementing for ages lol