Skip to content

Commit 38df44c

Browse files
authored
Update README & add logo (#53)
See #50.
1 parent 6eaea76 commit 38df44c

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Rep
22

3-
`rep` is a command-line utility that takes [`grep`](https://en.wikipedia.org/wiki/Grep)-formatted lines via standard input, and performs a find-and-replace on the matches. By default, it outputs a [`diff`](https://en.wikipedia.org/wiki/Diff)-preview of the changes to standard output, and with a flag it can write the changes to the files in place.
3+
command-line find and replace with your editor
4+
5+
![logo](logo.png "logo")
6+
7+
`rep` is a command-line utility that takes [`grep`](https://en.wikipedia.org/wiki/Grep) or [`ripgrep`](https://github.com/BurntSushi/ripgrep)-formatted lines and applies a find-and-replace on the matches. You can do basic find-and-replace right from the command line, or edit grep output manually with your favorite editor and apply the changes.
8+
9+
This is incredibly powerful - you can use all the features of your editor including things like multiple cursors, regex replace, sorting, etc. and then apply the changes. For example:
10+
11+
1. `rg -n "(BananaStand|banana[_-]stand)" > /tmp/out.txt`
12+
2. spend five happy minutes editing out.txt in vscode to turn banana stand into lemonade stand
13+
3. `rep -w /tmp/out.txt`
14+
15+
## Screenshot
416

517
[![Find & replace with `rep`](rep.gif)](https://www.youtube.com/embed/QIOKKTnC9-I)
618

logo.png

5.5 KB
Loading

logo.svg

Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)