All Projects → Wilfred → Deadgrep

Wilfred / Deadgrep

fast, friendly searching with ripgrep and Emacs

Labels

Projects that are alternatives of or similar to Deadgrep

Ensime Emacs
ENhanced Scala Interaction Mode for Emacs
Stars: ✭ 361 (-13.84%)
Mutual labels:  emacs
Company Box
A company front-end with icons
Stars: ✭ 395 (-5.73%)
Mutual labels:  emacs
Awesome Dotfiles
Dotfiles for awesome people using the awesomewm linux environment
Stars: ✭ 409 (-2.39%)
Mutual labels:  emacs
Pg
This repo is the new home of Proof General
Stars: ✭ 367 (-12.41%)
Mutual labels:  emacs
Emacs Racer
Racer support for Emacs
Stars: ✭ 381 (-9.07%)
Mutual labels:  emacs
Emacs Theme Gruvbox
Gruvbox is a retro groove color scheme for Emacs. Port of the Vim version.
Stars: ✭ 402 (-4.06%)
Mutual labels:  emacs
Use Package
A use-package declaration for simplifying your .emacs
Stars: ✭ 3,748 (+794.51%)
Mutual labels:  emacs
Emacs From Scratch
An example of a fully custom Emacs configuration developed live on YouTube!
Stars: ✭ 412 (-1.67%)
Mutual labels:  emacs
.emacs.d
M-EMACS, a full-featured GNU Emacs configuration "distribution"
Stars: ✭ 387 (-7.64%)
Mutual labels:  emacs
Jdee
The JDEE is an add-on software package that turns Emacs into a comprehensive system for creating, editing, debugging, and documenting Java applications.
Stars: ✭ 409 (-2.39%)
Mutual labels:  emacs
Writegood Mode
Minor mode for Emacs to improve English writing
Stars: ✭ 369 (-11.93%)
Mutual labels:  emacs
Nord Emacs
An arctic, north-bluish clean and elegant Emacs theme.
Stars: ✭ 379 (-9.55%)
Mutual labels:  emacs
Parinfer Mode
Parinfer for Emacs :)
Stars: ✭ 406 (-3.1%)
Mutual labels:  emacs
Sayid
A debugger for Clojure
Stars: ✭ 367 (-12.41%)
Mutual labels:  emacs
Emacs Tree Sitter
Tree-sitter for Emacs
Stars: ✭ 409 (-2.39%)
Mutual labels:  emacs
Org Sidebar
A helpful sidebar for Org mode
Stars: ✭ 354 (-15.51%)
Mutual labels:  emacs
Org Capture Extension
A Chrome and firefox extension facilitating org-capture in emacs
Stars: ✭ 396 (-5.49%)
Mutual labels:  emacs
Zero To Emacs And Org Roam
Step by step guide from zero to installing and setting up Emacs and Org-roam on Windows 10
Stars: ✭ 418 (-0.24%)
Mutual labels:  emacs
Centaur Tabs
Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
Stars: ✭ 414 (-1.19%)
Mutual labels:  emacs
Emacs Purpose
Manage Windows and Buffers According to Purposes
Stars: ✭ 407 (-2.86%)
Mutual labels:  emacs

Deadgrep: use ripgrep from Emacs

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

Coverage Status MELPA

screenshot

Table of Contents

Usage

Installation

  1. Install ripgrep. You need version 0.8 or later.

  2. Install deadgrep from MELPA (do M-x package-install RET deadgrep within Emacs 25.1 or later), or copy it into your ~/.emacs.d.

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

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

Keybindings

Key Action
RET Visit the result, file or push button at point
o Visit the result in another window
n and p Move between results or buttons
N and P Move between search hits
M-n and M-p Move between file headers
g Re-run the search
TAB Expand/collapse results for a file
C-c C-k Stop a running search
C-u A prefix argument prevents searches from starting automatically.

You can also use M-x imenu to move between files in a results buffer.

Additional interactive commands

Name Action
deadgrep-kill-all-buffers Kill all open deadgrep buffers.

Minibuffer

You use the minibuffer to enter a new search term.

You can also reuse a previous search term with M-p in the minibuffer. To edit the default search term, use M-n.

Features

Super Fast

Deadgrep uses ripgrep for extremely fast text searches.

If you change your search settings, deadgrep will immediately re-run your search.

Context Aware

Deadgrep works hard to minimise your keystrokes.

Search term: If the region is active, deadgrep uses that.

Search directory: If your current file is in a VCS repository, deadgrep uses that for your search directory.

Regexp and case sensitivity options: Deadgrep re-uses whatever settings you used in your last search.

Globbing and file types: Deadgrep suggests file types and globbing options that match the file you started the search from.

Host: If you're editing a remote file with Tramp, deadgrep will search the remote machine. This requires rg to be installed on that machine.

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

When navigating to a line that matched, the relevant part of the line is temporarily highlighted.

screenshot

You can collapse and expand files with TAB.

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.

Beta Features

You can now edit files directly from results buffers with M-x deadgrep-edit-mode.

It is currently in beta, so you may also want to try this pull request on wgrep.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].