5 ms·
Have you used these command line utilities yet? They're great! Exa, ripgrep, fd, bat, broot, ruplacer And more...
by Dowwie 8y ago
Have you used these command line utilities yet? They're great!
Exa, ripgrep, fd, bat, broot, ruplacer
And more...
- nurettin 8y agoI did try rip "grep". rg "^SECRET" Find nothing. Try to contact someone who is asleep for half an hour, then they tell me they put it in there. grep -r "^SECRET" . yep, it is there, in an .env file. "Uhh yeah sorry I was using ripgrep and it doesn't search hidden files by default but it has a flag for it" "you wut?" "nevermind, thanks bye." <- that is ripgrep. Maybe we got off on the wrong foot. Anyway thanks for listing all the tools you're great.
- StavrosK 8y agoIt does search hidden files, it doesn't search gitignored files. Why are you assuming it's identical to grep?
- nurettin 8y agoHave you installed it? nurettin@ ~ () $ mkdir test nurettin@ ~ () $ echo "TEST SOMETHING" > test/.env nurettin@ ~ () $ cd test nurettin@ ~/test () $ rg "TEST" Why I don't know, because it has grep in the name? Do you now realize where the confusion might be lying?
- burntsushi 8y agoThis is part the whole point of ripgrep. If you don't want it to do smart filtering, then you either alias `rg="rg -uu"` or just use grep if it's fast enough for you. Some people might miss this, yes. That's why it's mentioned in the first couple sentences of the man page.
- nurettin 8y agoRTFM is an important thing we remind to eachother in order to reach for our own knowledge instead of relying upon others to give it to us. And yes, this most important bit of information is in the man page and the help text, but not at the top of the page people who came to actually download the tool will look first. Which is `https://github.com/burntsushi/ripgrep` https://github.com/burntsushi/ripgrep` .
- burntsushi 8y agoSure. I'm just trying to justify the actual behavior of ripgrep (which you are poo-pooing) by saying that it is at the very heart of what ripgrep is about. It's not some weird corner case that's supposed to bite you. It is its raison d'etre. The README mentions that it respects gitignore rules. I just updated it to include hidden/binary files. Thanks.
- nurettin 8y agoPoopoo sounds really funny. Haha. Still pretty sure grep is a confusing name for something which doesn't grep "because of smart filtering" <- that is just your rules, your way, whatever your heart desires, whatever you want to call "smart". This is not about Rust anymore (which I actually like) This is a point you seem to be ignoring in favor of opinions such as "this is the reason for this tool to exist" <- again, your way, your rules. It is circular to name something after something else, then making it act totally different, whatever you want it to do, changing output format, filtering files, then responding to confused people saying hey this is what I wanted. Yes it is. It doesn't change a thing. Thanks for the readme update.
- burntsushi 8y agoIf I named it something totally different, people might say, "why didn't you just call it a grep, because that's basically what it is." Language and perspective is funny like that. > whatever you want to call "smart". Related: https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#posix4ever https://github.com/BurntSushi/ripgrep/blob/master/FAQ.md#pos...
- iruoy 8y agoFrom https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep > Like other tools specialized to code search, ripgrep defaults to recursive directory search and won't search files ignored by your .gitignore files. It also ignores hidden and binary files by default.
- iruoy 8y agoI'd recomend lsd over exa. Which I also use to replace tree. I haven't heard of broot and ruplacer before, but they seem cool. I've got this in my .zshrc: alias ls='lsd' alias tree='lsd --tree'
- suprfnk 8y ago> lsd Tangent, but man is that a bad name for a CLI tool. Had to add a lot of keywords to not get drugs-related pages.
- asark 8y ago"!gh lsd" Though yes, many computer-thing names are bad in the search department.
- dangom 8y agoWould you know what their differences are? At first sight neither exa's nor lsd's README.md mention that (except that lsd is slightly faster according to their bench).
- dystroy 8y agoHey, broot is great! And I'm totally impartial, being the author. Joke apart, as I've been told broot was being mentioned here, I'm available if you have any question. I'll do a SHOW-HN post some day but I'm currently postponing it because of a bunch of new features in the making. Reference: https://github.com/Canop/broot https://github.com/Canop/broot