https://github.com/hiromichinomata/emacro
Use emacs macro like grep
https://github.com/hiromichinomata/emacro
cli emacs golang macro
Last synced: 4 months ago
JSON representation
Use emacs macro like grep
- Host: GitHub
- URL: https://github.com/hiromichinomata/emacro
- Owner: hiromichinomata
- License: mit
- Created: 2020-04-13T11:04:02.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2020-04-29T08:58:26.000Z (about 6 years ago)
- Last Synced: 2025-09-06T07:25:14.650Z (10 months ago)
- Topics: cli, emacs, golang, macro
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emacro
Use Emacs macro like grep
## Usage
```
$ cat test/sample.csv
2020-04-01 01:23,user01,male,17
2020-04-01 02:34,user02,female,27
2020-04-01 03:45,user03,male,37
$ grep female test/sample.csv
2020-04-01 02:34,user02,female,27
$ emacro '^S,user^D^D' test/sample.csv
2020-04-01 01:23,user,male,17
2020-04-01 02:34,user,female,27
2020-04-01 03:45,user,male,37
```
## Doc
Basic
* `^A` => `C-a`
* `^a` => `M-a`
Supported operations
* `C-a`
* `C-b`
* `C-d`
* `C-e`
* `C-f`
* `C-n`
* `C-s`
To input `^`, you can use `^^`
## TODO
* [ ] more operations
* [ ] how to install
* [ ] test