-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publicize the --pre (and --pre-glob) flags a bit more #1252
Comments
I wrote some things about this at the aforementioned gist. |
Related work: rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc, which is a frontend for |
If helpful, one additional use I would be willing to write up a bit is a highly ad-hoc full text search. This clearly falls outside the core functionality of code search, and has all it's own tradeoffs. However while obvious, likely niche, and so close to the core functionality for a programmer, it's gibberish for everyone else, even the technically inclined, for whom it would be a boon. |
@ColonolBuendia If you wanted to give that a go, I'm sure we could find a place for it in the ripgrep docs. If it's closer to a very specific use case, then it might be a good FAQ item. If it's more like an explanation for how |
Let me know how to edit the write up in the gist as it is now if its not very clear on the use of --pre. As Pascal said, it would have been shorter if I had spent more time on it. In terms of a guide, that sounds right to me. The documentation curerntly is highly convincing that rg is faster. I'm not even sure the unconvinced on speed are convincable from here. edit: The full text idea i just mentioned is an example of how to use ripgrep -pre in an interesting way more than anything. It's also a real thing I was able to do to kill an instance of microsoft search server 2010* that was running for a similair purpose. *Apparantly, this is common. It was made free, and that was that. I imagine if you help kil enough of these, you get on the holiday card list for the ms security team forever. |
Noting that following a username change, the gist mentioned is now located here: An updated usage is here: |
In reference to: https://news.ycombinator.com/item?id=19675934
It sounds like while the
--pre
flag is a fairly niche feature, it can be really useful in certain circumstances. Currently, the--pre
flag isn't really advertised prominently anywhere, and it may not be obvious how to use it effectively.The poster from HN graciously provided an example script they're using, which seems pretty neat. We might consider using it as an example:
https://gist.github.com/ColonolBuendia/314826e37ec35c616d70506c38dc65aa
The text was updated successfully, but these errors were encountered: