ThePrimeagen / .dotfiles

3.01k stars 303 forks source link

Better fzf folder listing with `fd` && `sed` #40

Closed Hacksore closed 1 year ago

Hacksore commented 1 year ago

Just wanted to share that I adopted this approach to list folders that removes a bit of noise.

selected=$(fd . ~/code/opensource ~ --hidden -d 1 | sed "s|^$HOME|~|" | fzf)

The current impl you have. https://github.com/ThePrimeagen/.dotfiles/blob/602019e902634188ab06ea31251c01c1a43d1621/bin/.local/scripts/tmux-sessionizer#L6

Demo:

https://github.com/ThePrimeagen/.dotfiles/assets/996134/63ea5d57-2d52-472d-bead-6803c7271055

You're free to close wontfix but figured I'd share it with you my bruda!

Hacksore commented 1 year ago

I broke the folder paths so I had to make a little fix.

https://github.com/Hacksore/dotfiles/commit/97bc1d10964dd85fe10f71056ebdf75ecb4dd09e

Hacksore commented 1 year ago

peace-out