45

GitHub - Wilfred/deadgrep: fast, friendly searching with ripgrep and Emacs

 5 years ago
source link: https://github.com/Wilfred/deadgrep
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

deadgrep: use ripgrep from Emacs Build Status Coverage Status

Deadgrep is the fast, beautiful text search that your Emacs deserves.

screenshot

Installation

  1. Install ripgrep.

  2. Install deadgrep from MELPA (coming soon) or copy it into your ~/.emacs.d.

  3. (Optional) add deadgrep to a convenient shortcut. I like F5.

(global-set-key (kbd "<f5>") #'deadgrep)

Super Fast

Deadgrep uses ripgrep for extremely fast text searches. It works hard to minimise your keystrokes, to get you results as soon as possible. Try running M-x deadgrep with a region highlighted.

If you change your search settings, deadgrep immediately re-runs the search.

Easy Filtering

Didn't get the results you wanted? It's easy to change the search term, search type, or search directory, directly from the results buffer. Just push the relevant button.

screenshot

Polish

Deadgrep uses spinners to give you feedback on whether your search has finished.

screenshot

It highlights regexp syntax according to the syntax accepted by rg.

screenshot

Deadgrep handles minified files robustly.

screenshot

You can always jump to exactly the position that point is on, even when searching files that contain tab characters. You can also navigate to the file itself from the file headings.

Alternative Projects

I believe that deadgrep is the best tool for doing Emacs text searches, but there are some other great tools out there. See ALTERNATIVES for a discussion.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK