From: Jean Louis <bugs@gnu.support>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Text search from emacs
Date: Sat, 14 Dec 2024 09:06:35 +0300 [thread overview]
Message-ID: <Z10ga5UpDH8NSNxd@lco2> (raw)
In-Reply-To: <zWDDNq8GGsgaIkg4LvXlMmsUYq2iIey0noGiqMB-BQjkqNuEXO33cfE_ehploVXzTTtZ4Hosu8hFmOVBdxQpKMN2BFOJDME2W0Rym3AWMSs=@protonmail.com>
* Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2024-12-14 03:16]:
>
> How can I do a search for some text in some directory from emacs?
> Perhaps one can write an elisp function to conveniently do this?
You can use the `rgrep` command in Emacs to search for text in a
directory and its subdirectories.
- Type `M-x rgrep` and press RET, follow prompts
This function uses the `rgrep` command, which uses `grep` under the
hood.
Though there are other ways, like `M-x grep` or even `M-x find-dired`
You have it under Menu Tools, look there.
--
Jean Louis
Emacs is so customizable that you can spend hours tweaking it and still not have written a single line of code 🤣.
next prev parent reply other threads:[~2024-12-14 6:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-14 0:14 Text search from emacs Heime via Users list for the GNU Emacs text editor
2024-12-14 6:06 ` Jean Louis [this message]
2024-12-14 7:26 ` expand-region for =org emphasis= Samuel Wales
2024-12-14 9:09 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z10ga5UpDH8NSNxd@lco2 \
--to=bugs@gnu.support \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).