Questions tagged [helm-grep]

13 questions
8
votes
1 answer

how to helm-projectile-grep for exact string?

How can I direct helm-projectile-ag and helm-projectile-grep to search for an exact string? If I enclose a string in quotes, I get no results. If I don't, I get fuzzy matching.
incandescentman
  • 4,111
  • 16
  • 53
2
votes
3 answers

How can I search between the lines with multiline search?

I use C-u 4 M-x helm-swoop for interactive search also show several surrounding lines (this is analogous to grep -C 4). When I find the word I narrow my search interactively, for example, C-u 4 M-x helm-swoop foo bar And this is analogous to grep…
Pfedj
  • 308
  • 2
  • 11
2
votes
0 answers

helm-grep-do-git-grep - search only in current dir

Windows 10, Emacs 25.1, Helm If I run command M-x helm-grep-do-git-grep it's search text in current folder and all subfolders. But I need to search text only in current folder. How I can do this?
a_subscriber
  • 3,854
  • 1
  • 17
  • 47
2
votes
0 answers

How can I replace grep with sift or ag in helm-grep? (Not helm-do-ag)

I've currently got a custom function that I use to grep through files in helm. ;; Search for the thing that the cursor is on or that's already hilighted. If there's nothing, ;; switch back to searching for text interactively. (defun…
RealityMonster
  • 261
  • 1
  • 10
1
vote
2 answers

How to use Helm to grep across a list of xz compressed files?

I'm trying to implement a simple helm extension for work which among other things provides an action to "grep across selected log file candidates". I've got this all working for actions like this: (defun visit-logs-action (log-directory…
Palace Chan
  • 113
  • 4
1
vote
1 answer

How do I configure helm-git-grep candidates limit?

I have this in my .emacs file but it still shows that the limit is 300 Candidates. (require 'helm-git-grep) ;; Not necessary if installed by package.el (global-set-key (kbd "C-c g") 'helm-git-grep) (setq helm-candidate-number-limit 200)
1
vote
1 answer

Error running timer: (error "Candidates function `helm-git-grep-process' should run a process")

I'm getting this error when trying to run helm-git-grep. As soon as I start typing the first character of the pattern, I get this: Error running timer: (error "Candidates function `helm-git-grep-process' should run a process")
0
votes
1 answer

How to use regular expressions with helm-projectile-grep?

I would like to find all strings in files matching the pattern foo_*_bar. I know that one can use \s to match empty characters. What's the pattern for zero or more characters? Could not find it by searching the web.
honey_badger
  • 181
  • 2
  • 8
0
votes
0 answers

helm-grep-do-git-grep: possible to show results in minibuffer?

When I use helm-grep-do-git-grep results are shown in the current window or a different one, but it takes the whole window. It there an option to show results in the minibuffer, below the current window where one is searching? Thanks!
Adelita
  • 155
  • 7
0
votes
1 answer

How to exclude certain files from helm-do-grep-1

Suppose, we have the following files: ~/1.js, ~/1.min.js, ~/bad-dir/2.js. All of them have the following contents: function hello () {} I am using helm-do-grep-1 to grep through these files and want exclude certain patterns in file names and…
user4035
  • 1,039
  • 11
  • 24
0
votes
1 answer

How do I set path for ag for helm-do-grep-ag

I am on MacOS (darwin) and when I attempt helm-do-grep-ag I get a zsh error zsh:1: command not found: ag. What is the proper way to address this? My ag is homebrewed and so is in /usr/local/bin I verified the setting of PATH in both bash and zsh…
Chip Grandits
  • 267
  • 1
  • 6
0
votes
0 answers

Search in recent files

I use helm-recentf to receive the list of recent files. I would like to have an opportunity to search over the list of recently viewed files. Can I do it with grep or helm-swoop? Is there any other way? UPDATE: Lets say I have the list of recent…
Pfedj
  • 308
  • 2
  • 11
0
votes
1 answer

helm-grep-do-git-grep : show only exact matching

Windows 10, Emacs 25, Helm I want to find exact text "data autoupdate" in all files in some folder in my Android Git project. So I use command M-x helm-grep-do-git-grep And input text "data autoupdate" Here result: As you can see it find 4…
a_subscriber
  • 3,854
  • 1
  • 17
  • 47