Emacs-wgrep VS embark

Compare Emacs-wgrep vs embark and see what are their differences.

Emacs-wgrep

Writable grep buffer and apply the changes to files (by mhayashi1120)

embark

Emacs Mini-Buffer Actions Rooted in Keymaps (by oantolin)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Emacs-wgrep embark
6 65
601 835
- -
6.2 8.6
4 months ago 15 days ago
Emacs Lisp Emacs Lisp
GNU General Public License v3.0 only GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of Emacs-wgrep. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-30.
  • bulk Multiline find-and-replace?
    1 project | /r/emacs | 21 Mar 2023
    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
    7 projects | news.ycombinator.com | 30 Jan 2023
    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;
    2 projects | /r/emacs | 5 Aug 2022
    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
    5 projects | news.ycombinator.com | 27 Jul 2022
    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
    6 projects | /r/emacs | 18 Apr 2022
    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?
    1 project | /r/emacs | 30 Jun 2021
    Have you take a look at wgrep? https://github.com/mhayashi1120/Emacs-wgrep

embark

Posts with mentions or reviews of embark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-04.
  • Emacs Commands I Got by with for Years
    7 projects | news.ycombinator.com | 4 Jan 2024
  • Emacs Advent Calendar 7: ordeless, embark 1.0 and some bric-a-brac
    9 projects | /r/emacs | 7 Dec 2023
    embark. The one I always struggle to explain, so instead go read u/karthink's wonderful blog post about it! Prodded by u/minad-emacs, I just released version 1.0! 🎉
  • How can I save the result of a ripgrep search
    1 project | /r/emacs | 24 Nov 2023
    using embark, you need to set a keybind to embark, then use the ripgrep normally, when the minibuffer returns the results, call the embark via keybind and use embark-export, that is bind to E, then embark will create a buffer with the results from minibuffer
  • (void-variable string-width) error by consult-buffer
    2 projects | /r/emacs | 10 Apr 2023
    There seems to be some problem with straight not correctly installing or updating compat. See these issues on Marginalia and Embark where straight seems to not install Compat.
  • I Use My Mouse
    4 projects | news.ycombinator.com | 10 Feb 2023
    Surfingkeys looks pretty similar (though I have yet to try it); I'm just describing the experience poorly. You press f, little labels show up on the links (I called this "listing the links"), and you then press the keys on the label (the "select from" part). Probably me using the open in new tab command F (as opposed to open in current tab command f) did not help.

    Not saying it's a bad experience. I find it's quite nice if I'm currently looking at the correct link so I can get the letters from the label easily.

    It's just a different paradigm. If I didn't know what a link was, I wouldn't know that I could press f to open the link selection. This means I can't select a link unless I had a "select unknown" button, and then use that to inspect it.

    Select unknown can be done with the keyboard: Emacs' embark[^1] is a good example of it. You use search/arrows to go to an interesting piece of text (e.g something underlined), run embark, and it lists all the potential things you can do with it (e.g open in external browser, or download an archived copy). It's just that keyboard UIs do not tend to be geared around it.

    That though is the sort of thing the mouse is good at: you see something interesting, you prod it to see what you can do with it.

    Say you saw a phrase you didn't understand in the browser. Currently, with a mouse you'd highlight it, right click, and then select the search with search engine option. With keyboard you'd open the search engine, and enter the phrase. Both get you to the same place.

    Now if we extend the mouse to have a "I would like to know idioms better" option. You could just select the phrase, right click, and a definition could be there waiting for you next to the context menu. It could even be there on hover.

    With the keyboard though, you'd generally run an "I would like to know idioms better" command. This would then ask you which idiom on the page would you like to understand. You then select it, and presto. A faster version could potentially have idiom meanings show up the moment you ran the command by a similar hover effect (or just listing all discovered idioms in a popup etc).

    One of the differences here though is that from the mouse you still have a list of actions on the text open, so maybe if you liked the definition you could then copy the phrase.

    This certainly could be done from the keyboard UI: just have it list other applicable commands that could be run on the selection generated from the command that searched for phrases. No reason why it could not then spawn something asking if you wanted to "(c)opy, c(u)t" etc like the context menu.

    But that is only visible because there was a phrase you didn't know. If you didn't know that there was a command to define phrases, you wouldn't have found out. In theory you could have commands register everything they could act on, and then have another command let the user select an interactive thing, and list the commands that registered for it. I think that would be overwhelming though, as something like a dictionary command would register for every word.

    Ultimately the mouse is just different then the keyboard, and I think that discarding it because you majorily use a keyboard is missing the interesting potential of having a tool that can interrogate arbitrary things on your screen.

    [1]: https://github.com/oantolin/embark

  • [ANN] Kele: Snappy Kubernetes cluster management in Emacs
    5 projects | /r/emacs | 10 Jan 2023
    It also comes with “batteries included,” containing several integrations with noteworthy packages, in particularEmbark, that you can take advantage of for nimbly interacting with your configs and clusters.
  • Is it possible to use imenu (or ideally imenu-anywhere) as an xref backend?
    2 projects | /r/emacs | 23 Dec 2022
    I have a cheap way to do this involving Embark and Consult: use consult-imenu as an embark action on an identifier. (You need consult-imenu here because it flattens the imenu hierarchy). Say you bind embark-act to C-., then you can put point on an identifier and type C-. C i and embark will run consult-imenu for you, type the identifier at the minibuffer prompt automatically, and if there is a single matching item, press RET for you too. (If more than one item matches, then you must select among them and press RET.)
  • My Experience With Emacs and the Eventual Regression to VSCode
    2 projects | /r/emacs | 1 Dec 2022
    I use embark and one of the options it gives on find-file is to open it via sudo (C-. s for me, and I think that's default bindings). So I would browse to the host at /ssh::/etc/foo/bar.conf and rather than just opening it hit C-. s.
  • Selectrum now deprecated in favor of Vertico
    4 projects | /r/emacs | 28 Nov 2022
    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.
  • org-cc: Custom completions for Org (WIP)
    9 projects | /r/emacs | 22 Nov 2022
    IV) Might there be a way to implement changing the sort order while the completing-read prompt is active? Or might it be a good idea to abandon completing-read completely for this and other features, like live editing? I am aware that some of this can be accomplished with Embark. Org tables and some other Emacs table libraries also go some way in this direction. The dream would be to have citar-like dynamic table construction + filtering + selection and Excel-like sorting + editing. Is anyone aware of any other package that goes into this direction?

What are some alternatives?

When comparing Emacs-wgrep and embark you can also consider the following projects:

deadgrep - fast, friendly searching with ripgrep and Emacs

helm - Emacs incremental completion and selection narrowing framework

iedit - Modify multiple occurrences simultaneously

org-roam-ui - A graphical frontend for exploring your org-roam Zettelkasten

lunarymacs - Moon-based Emacs configuration.

consult - :mag: consult.el - Consulting completing-read

melpa - Recipes and build machinery for the biggest Emacs package repo

emacs-config - My personal Emacs configuration

doomemacs - An Emacs framework for the stubborn martian hacker

marginalia - :scroll: marginalia.el - Marginalia in the minibuffer

fussy - Emacs completion-style leveraging flx

eglot - A client for Language Server Protocol servers