Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zk-phi/phi-grep
Interactively-editable recursive grep implementation in elisp
https://github.com/zk-phi/phi-grep
emacs
Last synced: 3 months ago
JSON representation
Interactively-editable recursive grep implementation in elisp
- Host: GitHub
- URL: https://github.com/zk-phi/phi-grep
- Owner: zk-phi
- Created: 2014-12-01T15:40:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T08:37:14.000Z (over 2 years ago)
- Last Synced: 2024-08-05T06:06:02.546Z (6 months ago)
- Topics: emacs
- Language: Emacs Lisp
- Homepage:
- Size: 6.28 MB
- Stars: 30
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.org
Awesome Lists containing this project
README
* phi-grep.el
Elisp 実装の編集可能な再帰 grep
interactively-editable recursive grep implementation in elisp
** Screencast
[[screencast.gif]]
** Usage
Require this script
: (require 'phi-grep)
then following commands are available.
- phi-grep-in-file :: grep in a single file
- phi-grep-in-directory :: recursive grep in a directory treeIn dired-mode buffers, following commands are available in addition.
- phi-grep-dired-in-dir-at-point :: grep in a directory at point
- phi-grep-dired-in-file-at-point :: grep in a file at point
- phi-grep-dired-in-marked-files :: grep in all marked files
- phi-grep-dired-in-all-files :: grep in all listed files
- phi-grep-dired-dwim :: automatically choose one of aboveIn the phi-grep result buffer, you can also perform a recursive grep.
- phi-grep-recursive :: grep within the files in the current result
You can exit phi-grep with one of [C-g] or [RET]. [C-g] will jump you
back to the original position where phi-grep is invoked, and [RET]
does not.You can optionally edit the result of grep, and you will asked whether
to commit changes or not.** Advantages
- Implemented in pure Elisp.
- phi-grep can also search in opened buffers (not only files on the
disk), thus the result can reflect unsaved changes.- phi-grep does not depends on the external command "grep". So you
can do grep-and-edit on every OS that Emacs can run on.- Result is editable INTERACTIVELY with preview.
- Result is consistent even when you edit some parts of matched files
after phi-grep.