Questions tagged [rgrep]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
58 views

Grep multiple lines in a directory

I have a regular expression that can match several lines of text, and I want to use it to search every file in a directory. The problem is that standard regrep command works line by line, so this ...
0
votes
1answer
96 views

How to do case-insensitive rgrep for cyrillics?

I tried to use rgrep to search in cyrillic files with UTF-8 encoding (M-x rgrep command with search query бонус), the resulting command name was /usr/bin/find . -type d ( -path */SCCS -o -path */...
2
votes
1answer
50 views

How do I kill all buffers that were opened from browsing rgrep results?

I had a set of buffers open that I want to keep. Then I started a search with M-x rgrep (SPC f g on Spacemacs). While browsing results with n and p, each file containing a result is opened in a new ...
1
vote
1answer
176 views

color rgrep matching results in the rgrep results buffer

I am liking rgrep as it lets you choose a path and searches recursively. How is it possible to highlight the matches in the rgrep buffer?
1
vote
1answer
45 views

Paths not hyperlinking correctly

Recently when running compile, the error messages don't get hyperlinked properly. I get this type of error message: ../build/obj/DerivedClass.cpp:45:18: error: expected type-specifier The buffer ...
2
votes
1answer
73 views

Cancel rgrep during execution

I'm recursively grepping a large project using M-x rgrep. After a few seconds pass I see the text I was searching for. At this point how can I cancel the search whilst preserving the buffer contents?
2
votes
2answers
96 views

Switch to *grep* buffer after running rgrep

I have assigned C-c C-g to rgrep, this works fine, however I am still in the buffer I was in and not in the grep buffer which loads the results. After hitting C-c C-g and running rgrep, I want to be ...
0
votes
1answer
105 views

a function to grep specified files?

My Emacs customizations reside in a few separate .org files, all in the directory ~/emacs-prelude/personal. I'm always searching these files to find and change settings. How can I define a function ...
4
votes
1answer
443 views

rgrep default files pattern

How can I modify the default FILES pattern in rgrep for C++ mode? For C mode the default is *.[ch]. For C++, it is *.cc *.cxx *.cpp *.C *.CC *.c++. I would like to change it to *.cc *.[ch]xx *.[ch]...
2
votes
1answer
273 views

How to customize files pattern while using rgrep?

elpy-mode internally uses this command to search for a regexp in *.py files. (setq elpy-rgrep-file-pattern "*.py") (rgrep regexp elpy-rgrep-file-pattern default-directory)) However ...
5
votes
2answers
336 views

Default base directory in rgrep

Whenever I'm using M-x rgrep to search inside my project arborescence, the interactive prompts suggest the following default arguments for the function: Search for (default: <current word>) (OK,...
2
votes
1answer
91 views

rgrep in version 21.4?

Sadly I am stuck using Emacs version 21.4 in a work environment. Despite this I would very much like to be able to use rgrep. Either the version of Emacs 21.4 I have has been stripped down, or rgrep ...
2
votes
1answer
43 views

In egrep, how to click a matched line and let it show the matched line in another buffer without moving the cursor

In notepad++, I could search a folder, and then click the match line to display the matched line of the corresponding buffer. How to do this in emacs? What I can do now is to press "ENTER" on the ...
2
votes
2answers
145 views

Emacs-native solution to searching files

When I use Emacs on a Linux OS, I search through files with rgrep. On Windows machine this takes some additional setup. Is there an Emacs-powered solution for searching through multiple files that ...
11
votes
1answer
2k views

How to search an Arabic word in text without its diacritics/accents?

In Arabic as with some other languages there is what is called diacritics to enhance pronunciation. There is no convention on how many diacritics should be written for a single word. Some use the ...
1
vote
1answer
1k views

how to use helm-do-grep to search within subdirectories?

I am running the command helm-do-grep and I notice that the search is not recursive, i.e. it searches only in the directory I specify and not in subdirectories. How do I direct helm-grep to ...
6
votes
1answer
405 views

Is it possible to rgrep *.el.gz files?

I often find myself debugging some stuff in the installed Emacs sources, which are in *.el.gz form. And the ability to rgrep would be quite handy. Is this readily possible?