4 ms·
Hey thanks! I've been wanting something like this for ages, and didn't really think about combining fzf with fd. I've tweaked it to search a lot less folders (
by keyle 3y ago
Hey thanks! I've been wanting something like this for ages, and didn't really think about combining fzf with fd.
I've tweaked it to search a lot less folders (depth 5) and to restrict to a pattern beginning by X...
cd "$(fd "^${*}" "${HOME}" --max-depth 4 --type d --color never | fzf --select-1 --query "${*}")"
This makes it super snappy. I probably have waaay too many folders with similar names.
- agumonkey 3y agoSame reflex. As much as I appreciate full depth, I realize I really have many deep trees and it makes things laggy. ps: out of fun, I wanted to toy with fzf --multi mode function zzg { local selection="$(fd . "${HOME}" --type d --color never --max-depth 4 | fzf -m --query "${*}")"; local term="xterm" for dir in $selection do "${term}" -title "zzg({$dir})" -e "cd ${dir} && bash" & done }