Thing that keeps happening to me: "I know I've written something that uses libcurl's multi interface, let me go look at that code!" *Shuffle through dozens of projects, can't remember _where_ I did this.*
-
Show this thread
-
I know, I'll just grep through everything to find it!pic.twitter.com/YIOi27pAt2
8 replies 0 retweets 15 likesShow this thread -
This Tweet is unavailable.
-
Replying to @TimeDoctor @icculus
ripgrep (https://github.com/BurntSushi/ripgrep …) does
1 reply 0 retweets 1 like -
Replying to @turmoni @TimeDoctor
yeah, ripgrep, ack, ag...they all either ignore binary files or don't even open them if they don't have a known source code filename extension (and skip .git, etc directories completely).
2 replies 0 retweets 1 like -
None of those tools use a whitelist-by-default policy. They'll happily search files that don't have a known source code extension. For ripgrep, you can disable all smart filtering with `-uuu`, which will search the same stuff that `grep -r` will.
1 reply 0 retweets 1 like -
I’m probably misunderstanding you, but here’s ack’s default whitelist, and I’m sure others are similar: https://github.com/beyondgrep/ack3/blob/89df32ee19c0c340e12e584cb17bf3abef97d7e6/lib/App/Ack/ConfigDefault.pm#L31 …
1 reply 0 retweets 0 likes -
That's a blacklist, not a whitelist. It also defines a bunch of file types that can be optionally used as a whitelist.
1 reply 0 retweets 0 likes -
Whoops, linked a little too high. The whitelist is below it.pic.twitter.com/JVo7dOTcO0
1 reply 0 retweets 0 likes
Right. As I said, those are just the file type definitions. They aren't all enabled by default. You have to invoke them, e.g., `ack --php`.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.