Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wilfred/ez-query-replace
query-replace in Emacs with smarts and history!
https://github.com/wilfred/ez-query-replace
emacs query-replace
Last synced: 4 months ago
JSON representation
query-replace in Emacs with smarts and history!
- Host: GitHub
- URL: https://github.com/wilfred/ez-query-replace
- Owner: Wilfred
- License: gpl-2.0
- Created: 2013-08-21T16:47:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T22:45:15.000Z (over 3 years ago)
- Last Synced: 2024-10-06T02:34:55.965Z (4 months ago)
- Topics: emacs, query-replace
- Language: Emacs Lisp
- Homepage:
- Size: 125 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ez-query-replace
[![MELPA](http://melpa.org/packages/ez-query-replace-badge.svg)](http://melpa.org/#/ez-query-replace)
ez-query-replace is a simple wrapper around `query-replace` that adds
a default search term, and allows you to conveniently replay old
replacements.## Usage
### Default text
![query replace default](query_replace_default.png)
In the screenshot above, you can see `M-x ez-query-replace` offering the
symbol at point by default.**Tip**: You can use `M-p` (bound to `previous-history-element`) to
access the text you're replacing. This great when you want to replace
"fooba" with "foobar".### Replaying previous replacements
![query replace choice](query_replace_choice.png)
In the screenshot above, `M-x ez-query-replace-repeat` offers previous
replacements with completion. I'm
using [swiper](https://github.com/abo-abo/swiper) here but ido and
helm work too.## Changelog
### v0.5
ez-query-replace-repeat now reorders history, making it easier to
replay common replacements.Fixed crash on replaying replacements.
### v0.4
ez-query-replace is now smarter about setting the initial value of
point when you are replacing the value at point.We also now support helm/ivy/whatever your favourite completion
engine is.If point is midway through a replacement string, we now correctly
replace it.### v0.3
If the region is active when ez-query-replace is called, we deactivate
it after reading its contents. The active region just gets in the way
when you're replacing values.### v0.2
Improved the minibuffer prompt: say what we're replacing when we do
the replacement.### v0.1
Initial release.