Questions tagged [ripgrep]

is a line-oriented search tool for recursive searches according to a regexp pattern.

ripgrep is a line-oriented search tool. By default, it recursively searches the current directory for a regexp pattern and respects existing VCS-related ignore files and also automatically skips hidden files/directories and binary files.

11 questions
1
vote
1 answer

Why can't I use rg (ripgrep) in an Org mode source block?

I have the following source block in my Org mode file: #+begin_src sh :results output exec 2>&1 mkdir -p /tmp/example && cd /tmp/example echo "hello" > world rg --color=never 'hello' : #+end_src However, I never see any output in Org…
Zeta
  • 1,045
  • 9
  • 18
1
vote
1 answer

Ripgrep default search

I have been using projectile-ripgrep for a few months and I'm pretty happy with it. A few days ago I was testing some of is options and the default search for ripgrep (what I see in the minibuffer) changed from: [my-project] Ripgrep search for…
makeMonday
  • 445
  • 1
  • 5
  • 8
0
votes
0 answers

Repeat the same search in `helm-rg`, visiting buffers between search

I'm trying to do the following: find all buffers containing text "foo" visit each of those buffers to perform some edition Using helm-rg, I'm forced to do this: M-x helm-rg Enter the text I'm looking for (foo) Move in the helm-rg buffer to the…
phtrivier
  • 135
  • 5
0
votes
0 answers

How to present my semantic search model results in minibuffer to select them and open file?

I have an org-roam directory where I keep all my notes in org files. Currently to search through my notes, I use keyword searching using ripgrep with rg.el. With this method, rg pops up the results in the minibuffer and I can cycle through them and…
user39819
  • 11
  • 2
0
votes
3 answers

Why can't counsel-rg index an expression previously found?

I am using trying to use a command called counsel-rg. This is the associated describe-command: counsel-rg is an autoloaded interactive compiled Lisp function in ‘counsel.el’. (counsel-rg &optional INITIAL-INPUT INITIAL-DIRECTORY…
Pedro Delfino
  • 1,369
  • 3
  • 13
0
votes
1 answer

How to properly use consult-ripgrep to search through org-roam notes

I am trying to setup a way to systematically search through all my org-roam notes and I came across the following code that uses consult-ripgrep: (defun bms/org-roam-rg-search () "Search org-roam directory using consult-ripgrep. With…
0
votes
2 answers

Using rg (ripgrep): passing --files-without-match option flag

how would I pass (in interactive mode for rg) the --files-without-match flag.. There is no short option, and C-x l doesn't show a possibility either. I can do a M-x customize-group on rg to set it for the session, but would like a more imperative…
RoyM
  • 123
  • 4
0
votes
0 answers

How to refresh content indexed by counsel-projectile-rg after renaming symbols over multiple files?

I am a heavy user of the command called counsel-projectile-rg. As presented by Emacs using self-documenting tools: counsel-projectile-rg is an autoloaded interactive compiled Lisp function in ‘counsel-projectile.el’. It is bound to …
Pedro Delfino
  • 1,369
  • 3
  • 13
0
votes
1 answer

TRAMP and `projectile-ag`, `projectile-ripgrep` cause kernel panic and complete crash of Mac OS

I am using Emacs and TRAMP on a Mac to access a remote Git repo on a Linux machine. TRAMP is using the SSH protocol. projectile-find-file and routine editing works great. Projectile finds the .git directory on the remote machine, through…
Peter Becich
  • 289
  • 1
  • 10
0
votes
1 answer

How do I make `helm` save search results in a grep buffer?

I do helm-find-files (C-x c C-x C-f>), Tab, "Grep current directory with AG" (M-g a), enter pattern, Tab, "Save results in grep buffer" (F3). Now, how do I make M-g M-n/M-g M-p work with helm in a sibling buffer, like with rgrep? I was able to…
x-yuri
  • 281
  • 1
  • 8
0
votes
1 answer

How to filter search results by path pattern?

I'm using Projectile with ripgrep. I can search project lines by some pattern, as an example: test 42 will match strings like this so, test is not 42 at all I would like to be able to add additional pattern to the search string which would take all…
achempion
  • 115
  • 4