Skip to content
#

grep

Here are 304 public repositories matching this topic...

blueyed
blueyed commented Sep 12, 2019

rg --debug should output information about ignore files being read.

Currently it outputs something like the following, but it is not clear where the patterns are coming from:

% rg --no-config --debug foo
DEBUG|rg::args|src/args.rs:544: not reading config files because --no-config is present
DEBUG|grep_regex::literal|grep-regex/src/literal.rs:59: literal prefixes detected: Literals {
Yansongsongsong
Yansongsongsong commented Jul 16, 2019

过滤器/README.md 中wc命令解释有问题

常用选项 描述
l 只统计行数
w 只统计单词数
m 只统计字符数
c 只统计字节数
L 最大行的长度
不管指定选项的顺序如何,其信息显示的顺序都是固定的,遵从上面从上到下的顺序。  
若不加参数,则默认显示l,w,m三项。

若不加参数,则默认显示l,w,m三项。说明有误。实际应该等价于 -lwc

ref

By default, wc prints three counts: the newline, words, and byte counts.

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

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

  • Updated Jun 22, 2020
  • C++

Improve this page

Add a description, image, and links to the grep 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 grep topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.