Emacs-wgrep
orderless
Emacs-wgrep | orderless | |
---|---|---|
6 | 32 | |
601 | 677 | |
- | - | |
6.2 | 8.7 | |
4 months ago | about 1 month 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
orderless
-
Emacs Advent Calendar 7: ordeless, embark 1.0 and some bric-a-brac
orderless. A highly configurable completion style that matches multiple patterns in any order against minibuffer completion candidates.
-
Returning emacs user - what packages are common now?
An example relevant to your list would be some changes many people are taking with their completion framework - using package that leverage core emacs functionality rather than replacing it with a complete package that 'overrides' it. Consult, vertico, orderless and associate packages come to mind here. If you do a bit of a search you'll find plenty of info. Here is a video from Prot on the subject, but there are many others as well. I think Prot actually went on to write his own completion system to overlay native emacs functionality as well.
-
How to configure corfu for arbitrary orderless matching?
You didn't mention, so I'll ask, are you using the orderless (https://github.com/oantolin/orderless) completion style?
-
Help wanted: Zsh completion like Vertico+Orderless
Fuzzy completion ala Orderless would be awesome: hitting space during completion acts as a pattern separator.
-
Selectrum now deprecated in favor of Vertico
I dunno—I like how Vertico+Counsel feel. I'm not sure how good the support for Orderless and Embark are in Ivy, but I really like how those packages compose so nicely with the Vertico+Consult ecosystem.
-
How to get helm like narrowing behavior with selectrum?
In general, you want either orderless or prescient, with my personal preference being the former.
-
How to get corfu completions that include substring matches?
You probably want to investigate completion styles. There are many builtin styles, from basic, which just does prefix completion, on up. But there are also 3rd party styles. One of the most powerful is called orderless. Considering all these styles, there really is a ton of flexibility in how you can get to a completion candidate like some-named-something (some, s-n-s, sns, soso, [a-z]{4}-na, e\b \bs, ...). You can even configure more than one style at a time (and usually do).
-
What are the kinds of things you've written Emacs Lisp for?
Well, I've written some general purpose Emacs packages (orderless and embark) that I use a lot, but I also write Emacs Lisp for one-off tasks.
- Fuzzy Finding with Emacs Instead of Fzf
-
Show HN: Tere – A Faster Alternative to CD+ls
I like it. Would be nice to see orderless-style (https://github.com/oantolin/orderless) completion, and a config not to enter the directory by narrowing the completion to one, requiring enter to be pressed.
What are some alternatives?
deadgrep - fast, friendly searching with ripgrep and Emacs
selectrum - 🔔 Better solution for incremental narrowing in Emacs.
embark - Emacs Mini-Buffer Actions Rooted in Keymaps
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
iedit - Modify multiple occurrences simultaneously
emacs-gdb - GDB graphical interface for GNU Emacs
lunarymacs - Moon-based Emacs configuration.
swiper - Ivy - a generic completion frontend for Emacs, Swiper - isearch with an overview, and more. Oh, man!
melpa - Recipes and build machinery for the biggest Emacs package repo
helm-ag - The silver searcher with helm interface
doomemacs - An Emacs framework for the stubborn martian hacker