Emacs-wgrep
fussy
Emacs-wgrep | fussy | |
---|---|---|
6 | 10 | |
601 | 120 | |
- | - | |
6.2 | 4.4 | |
4 months ago | 23 days ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Emacs-wgrep
-
bulk Multiline find-and-replace?
But you probably wish something like wgrep (writable-grep), which is similar to wdired if you are familiar with that one. It will basically let you grep your files and display results in a buffer, then edit that buffer, and finally save changes to all referenced files.
-
The benefits of everything (in Emacs) being a buffer
Oh yeah, it gets even more interesting in large refactors, say an involved rename that requires you check the context before you do so (like not just global search and replace). I do a search, this opens a buffer with all results, with file name, position, all that, and Emacs can allow you to "peek" into the file without even leaving the search buffer focus (i.e use a split screen). Then, use https://github.com/mhayashi1120/Emacs-wgrep to do the magic of in-place editing.
-
Question about editing Consult/Embark ripgrep results;
If you use the grepping commands from the Consult package, consult-grep, consult-git-grep or consult-ripgrep, then you’ll probably want to install and load the embark-consult package, which adds support for exporting a list of grep results to an honest grep-mode buffer, on which you can even use wgrep if you wish.
-
Fuzzy Finding with Emacs Instead of Fzf
The `Emacs-wgrep` [1] package is what allows you to edit a standard Emacs grep buffer and have the specified changes applied to all the project's files. I just recently started using it, and it's extremely handy!
[1]: https://github.com/mhayashi1120/Emacs-wgrep
-
If you have never used wgrep with rg.el to rename a function in several files, try it | that will blow your mind
In this post we see how to rename interactively a function that appears in several files using rg.el and wgrep!
-
How to edit lines in the xref buffer?
Have you take a look at wgrep? https://github.com/mhayashi1120/Emacs-wgrep
fussy
-
Fuzzy Finding with Emacs Instead of Fzf
> Emacs has better fuzzy finding
With due respect to Mr. Petersen, and as an Emacs user myself, I really can't agree. When I fire up fzf I just type and generally without any thinking I get what I want. Emacs takes some configuration to get to that point; the built in flex completion is, for whatever reason, not as robust in my experience.
In fact, in my current config I've been using fzf (or really skim) for completion within Emacs, via fussy: https://github.com/jojojames/fussy
-
What is the name of the nice light theme
Good idear, I asked in the repos https://github.com/jojojames/fussy/issues/37
-
Prioritize exact match in completion styles
As oantolin mentioned, fido completely overrides your preferred completion-styles which I called out here recently as a blocker to really adopt it if you care about performant fuzzy matching. I've done a lot of messing around with configuration in this space and my preferred setup is vertico + hotfuzz. You might also want to check out fussy which supports a bunch of different backends (FWIW, hotfuzz with the dynamic module enabled for me had the best combination of performance and behaviour, but fuz-bin and fzf-native are also great).
- fussy: Emacs completion-style leveraging flx
-
Why use Vertico/Consult if i can just use fido-vertical-mode?
Currently, vertico + orderless + fussy (https://github.com/jojojames/fussy) enables you to find something with both fuzzy matching style and orderless style. I tried with Fido, only fussy works, but not orderless.
-
I'm switching to emacs from neovim
It's not enough to have a different way to list search results, however. If you want the Telescope experience you need a fuzzy completion. I have been enjoying fussy
-
Fuzzy Finding with Emacs Instead of fzf
Someone kinda has with fussy. It supports multiple filtering and sorting techniques, including fzf compiled as a dynamic module for emacs, flx, flx-rs, and more.
- fussy: A completion-style/fuzzy matching/scoring system for fido/icomplete/selectrum/vertico/ivy/helm/default completion systems [with flx, fzf, skim scoring backends]
What are some alternatives?
deadgrep - fast, friendly searching with ripgrep and Emacs
no-littering - Help keeping ~/.config/emacs clean
embark - Emacs Mini-Buffer Actions Rooted in Keymaps
emacs.d - An Emacs configuration bundle with batteries included
iedit - Modify multiple occurrences simultaneously
fzy - :mag: A simple, fast fuzzy finder for the terminal
lunarymacs - Moon-based Emacs configuration.
castlemacs - Modern, minimalist Emacs for macOS ⌘
melpa - Recipes and build machinery for the biggest Emacs package repo
company-fuzzy - Fuzzy matching for `company-mode'
doomemacs - An Emacs framework for the stubborn martian hacker
multiple-cursors.el - Multiple cursors for emacs.