Skip to content
#

ripgrep

Here are 52 public repositories matching this topic...

Manishearth
Manishearth commented Oct 15, 2019

What version of ripgrep are you using?

$ rg --version
ripgrep 11.0.2
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

Cargo

What operating system are you using ripgrep on?

Ubuntu

Describe your question, feature request, or bug.

Sometimes you end up inside a directory that's actually gitignored, and search for stuff. Of course,

fleutot
fleutot commented Mar 29, 2018

This file structure:

$ ls
mycode.c  other_file.c
$ git init
Initialized empty Git repository in /home/gauthier/tmp/dumb/.git/
$ git add mycode.c && git commit -m"Init"
[master (root-commit) 5271e5a] Init
 1 file changed, 15 insertions(+)
 create mode 100644 mycode.c

mycode.c:

typedef int my_type_t;

my_type_t a;
my_type_t my_function(my_type_t in);
int main(void)
nverno
nverno commented Nov 4, 2019

It took me a bit to figure out what was wrong here, and I don't think it is documented
anywhere. Here are a couple issues I ran into:

  1. If custom colors are defined in ~/.ripgreprc, eg. --colors=path:fg:cyan etc. then
    font-locking and other functions in the rg-results buffer don't work.

  2. Using xterm-color-filter also breaks rg's compilation (from xterm-color library)
    I usually

gvansickle
gvansickle commented Oct 26, 2016

@BurntSushi rightly reported that the 0.3.0 benchmarks do not pass '-u' to rg, thus giving the other utilities which don't look at .gitignore files an arguable unfair advantage. Address this.

Also, document how to obtain the corpi and run the benchmarks. This was slated for 0.3.0 (in my best intentions at least), but didn't make it. Maybe add rg's Linux corpus into the mix as well, it's a more

🔍Ultra fast grep with interactive query UI: search file systems, text and binary files, source code, archives (cpio/tar/pax/zip), compressed files (zip/gz/Z/bz2/lzma/xz), documents, and more. A faster, user-friendly replacement for GNU/BSD grep.

  • Updated Apr 23, 2020
  • C++

Improve this page

Add a description, image, and links to the ripgrep topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ripgrep topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.