iedit
Emacs-wgrep
iedit | Emacs-wgrep | |
---|---|---|
4 | 6 | |
390 | 599 | |
- | - | |
0.0 | 6.2 | |
over 1 year ago | 4 months ago | |
Emacs Lisp | Emacs Lisp | |
- | 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.
iedit
-
Looking for a package that would highlight a repeated word in the current paragraph
Try iedit https://www.emacswiki.org/emacs/Iedit.
-
If you have never used wgrep with rg.el to rename a function in several files, try it | that will blow your mind
Then, in *rg* buffer, we transform org-link-expand-abbrev into org-link-RENAMED the way we prefer (we have all the Emacs power, some of us might use query-replace, other might use multiple-cursors.el, other iedit, etc.). And so *rg* buffer looks like this:
-
Creating multiple cursors from symbol under point
I've discovered iedit, which allows me to C-; over any string and edit all occurrences of it simultaneously, à la multiple-cursors. The default behaviour is that, by pressing C-; only once, it selects all occurences of the string in the whole buffer. Is there a way to expand the selection to each new match one at a time? For those familiar with, I'm basically trying to replicate Sublime Text's functionality when you Ctrl/Cmd-D over any string.
- Helix: a post-modern text editor
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
What are some alternatives?
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
deadgrep - fast, friendly searching with ripgrep and Emacs
history - Emacs - History utility for source code navigation.
embark - Emacs Mini-Buffer Actions Rooted in Keymaps
visual-regexp-steroids.el - Extends visual-regexp to support other regexp engines
lunarymacs - Moon-based Emacs configuration.
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
melpa - Recipes and build machinery for the biggest Emacs package repo
kernel-wasm - Sandboxed kernel mode WebAssembly runtime.
doomemacs - An Emacs framework for the stubborn martian hacker
helix - A post-modern modal text editor.
fussy - Emacs completion-style leveraging flx