Preferences

    alias fd="rg --files | rg"

This isn't directly comparable, `fd` will find files with `X` in the name, but the `rg` alias will find all paths with `X` in it.

Eg,

    λ mkdir wing && touch wing/xwing.exe wing/tie.exe

    λ fd wing
    wing/
    wing/xwing.exe

    λ rg --files | rg wing
    wing/tie.exe
    wing/xwing.exe
I guess you're right. Isn't the former more useful in general? I find myself reaching for `:Rg` in Vim much more often than `:Files` or `:GFiles` courtesy of fzf.
They're just completely different tools.

The other day I was searching for a PDF I downloaded three years ago from a certain company.

Simply ran `find ~/Downloads -iname '<company-name>'` and it immediately popped up.

rg would not have helped me there. Even if I used something like rga, it would have taken significantly longer to parse the contents of every file in my home directory.

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal