s.el
The long lost Emacs string manipulation library. (by magnars)
visual-regexp.el
A regexp/replace command for Emacs with interactive visual feedback (by benma)
s.el | visual-regexp.el | |
---|---|---|
4 | 11 | |
1,021 | 382 | |
- | - | |
2.5 | 0.0 | |
about 1 year ago | about 3 years ago | |
Emacs Lisp | Emacs Lisp | |
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.
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.
s.el
Posts with mentions or reviews of s.el.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-10.
-
First libs for a new language?
String manipulation (the sort of stuff included in the s.el ELisp library);
-
Packages that make Emacs Lisp more pleasant
We will mainly look at 3 packages: s.el, f.el and dash.el. Two of these packages (first and last) are maintained by Magnar Sveen, who are also known for Emacs Rocks and What The .emacs.d (which are still great resources for learning and finding inspiration for your Emacs configuration!). We will also look at ht.el. These packages are used a lot in many of the Emacs packages you use in a day to day basis, like lsp-mode and rustic just to name a few. As most of these already have tons of examples in their READMEs, my main goal of this article is to inspire you to check them out. Hopefully you will know of one new package after reading this article :)
-
[ANN] dank-mode, a major mode for browsing Reddit
https://github.com/magnars/s.el (available on MELPA)
- Use visual-replace-regexp + lisp functions to do complicated text manipulation 5x faster and more reliably
visual-regexp.el
Posts with mentions or reviews of visual-regexp.el.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-05.
-
How can I replace word at point and all its occurences on screen?
https://github.com/benma/visual-regexp.el is a package you might want. Doing things starting with : is an evil thing, so if you want to do things that way you’ll have to fiddle with that.
-
Permanent query-replace-regexp bar
Maybe this? https://github.com/benma/visual-regexp.el
- How can I replace something in the whole document?
-
how do i get emacs to use a sane syntax for regular expression?
As others have said, this question crops up regularly. My take is: Just learn the syntax. People don't want to, but I don't believe it's actually difficult to remember. Use re-builder and I'd suggest using https://github.com/benma/visual-regexp.el for feedback, and just spend a bit of time learning, and the entire problem just goes away.
- Use "\/\*(.|\n)*?\*\/" with replace-regexp-in-string
-
Emacs for You – A 72 line –/.emacs to quickly set up vanilla Emacs for editing
I have not tried the multiple cursors package, but regarding the problem of manipulating several lines at once with instant preview, you could look at the visual-regexp package:
https://github.com/benma/visual-regexp.el
-
Do you use interactive regexp replace with Emacs regexps? Then this snippet may make your life easier.
I use visual-regexp-steroids to allow searching and replacing with alternative syntaxes (specifically, PCRE). It really makes the experience better along with visual-regexp itself.
-
How can I advise the vr/query-replace function from visual-regexp?
I use the package visual-regexp for search and replace. I don't like how the line for the current replacement decision is not centered.
-
Bridging Islands in Emacs: re-builder and query-replace-regexp
There is also https://github.com/benma/visual-regexp.el which kind of do the same thing.
- Use visual-replace-regexp + lisp functions to do complicated text manipulation 5x faster and more reliably
What are some alternatives?
When comparing s.el and visual-regexp.el you can also consider the following projects:
f.el - Modern API for working with files and directories in Emacs
anzu - Emacs Port of anzu.vim
ht.el - The missing hash table library for Emacs
pcre2el - convert between PCRE, Emacs and rx regexp syntax
lsp-mode - Emacs client/library for the Language Server Protocol
emfy - A dark and sleek Emacs setup for general purpose editing and programming
.emacs.d - My personal emacs settings, and the ones used in @emacsrocks
visual-regexp-steroids.el - Extends visual-regexp to support other regexp engines
dash.el - A modern list library for Emacs
emacspy - Program Emacs in Python instead of ELisp (i.e. write dynamic modules for Emacs in Python)
plz.el - An HTTP library for Emacs