Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathom/easy-replace.nvim
Quickly replace text without %s
https://github.com/nathom/easy-replace.nvim
Last synced: 8 days ago
JSON representation
Quickly replace text without %s
- Host: GitHub
- URL: https://github.com/nathom/easy-replace.nvim
- Owner: nathom
- Created: 2021-09-04T04:44:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T19:56:50.000Z (about 3 years ago)
- Last Synced: 2024-10-11T00:49:00.226Z (about 1 month ago)
- Language: Lua
- Size: 1000 Bytes
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# easy-replace.nvim
Quickly find and replace without having to worry about `%s` and escaping characters.
## Installation
```lua
use("nathom/easy-replace.nvim")
```Two visual mode mappings are automatically installed: `r` and `R`.
The first replaces the text selected with the inputted text throughout the file. The second requests
for confirmation before replacing.## Custom usage
You can call the replacement function with
```lua
require('easy_replace').replace_selection()
```To ask for confirmation, pass `true` into `replace_selection`.