ripgrep Questions
6
I'm searching for a fast method to find all files in a folder which contain 2 or more patterns
grep -l -e foo -e bar ./*
or
rg -l -e foo -e bar
show all files containing 'foo' AND 'bar' in the sa...
4
Solved
I'm working inside a very big github repo, say its structure is like
project-root
├── project-1
│ ├── subproject-a
│ └── subproject-others
└── project-2
├── subproject-b
└── subproject-others...
Tintoretto asked 3/12, 2020 at 6:12
1
Solved
How do I install ripgrep (rg) on Windows?
1
Solved
How do I install ripgrep (rg) on Windows?
1
I am trying to setup telescope with nvim on MacOS 13.2.1. I installed it using packer. I already installed all dependency that telescope needed. And still unable to show any result on find_files or...
Intinction asked 20/6, 2023 at 4:10
2
If i have files like:
cat file1.txt
foo
bar
cat file2.txt
foo
baz
cat file3.txt
bar
baz
Is there a command on ripgrep (or similar) that will search for e.g. files containing foo and bar? E.g. it...
4
I recently added ripgrep to my list of vim plugins and, immediately after installation, I began receiving this error message whenever I loaded up vim:
Error detected while processing /Users/my_macb...
Quadrisect asked 26/7, 2021 at 15:48
3
Solved
I want to find a string "Hello (Hello starts with double quote) in text files using ripgrep.
Normally, in Bash or ZSH, this would work by escaping with backslash or surrounding with single quote:
...
Anthony asked 2/1, 2020 at 20:51
2
Solved
When i am searching :Rg <string> , it is opening the result in FZF buffer. Often the filenames are not displayed fully in it. Also the once escaped the results are gone. I have to do research...
Dzungaria asked 27/10, 2020 at 10:36
1
Solved
If I have my folder like this:
dir:
├── 1.index1.html
├── 2.index2.html
├── 3.index3.html
├── a
│ ├── 1.index1.html
│
How can I tell ripgrep in the command to exclude only the file index1....
1
Solved
I have the following command to fuzzy find files in the command line and to open the selected file in VSCode.:
fzf --print0 -e | xargs -0 -r code
Now I want to be able to search also file conten...
Modiolus asked 11/5, 2020 at 23:3
1
Why do these match:
echo 'CCAGCTACTCGGGAGGCTGAGGCTGGAGGATCGCTTGAGTCCAGGAGTTC' | grep -E 'CCAGCTACTCGGGAGGCTGAGGCTGGAGGATCGCTTGAGTCCAGGAG[ATCG]{2}C'
echo 'CCAGCTACTCGGGAGGCTGAGGCTGGAGGATCGCTTGAGTC...
2
Solved
rg -l "searched phrase" | xargs vim
populates vim with searched terms, but I need to search for them once again, this time in vim.
How to pipe ripgrep search results to vim, so searched files w...
1
Solved
With grep I can search for the start and end of a word with
grep -e '\<leg\>' <where to search>
this would find I have a leg. but not play allegro here.
Ripgrep (0.10.0) does not se...
Lotte asked 18/1, 2019 at 13:18
1
© 2022 - 2024 — McMap. All rights reserved.