|
3 | 3 | [](https://stable.melpa.org/#/isearch-project)
|
4 | 4 | [](https://www.gnu.org/licenses/gpl-3.0)
|
5 | 5 |
|
6 |
| - |
7 | 6 | # isearch-project
|
8 | 7 | > Incremental search through the whole project.
|
9 | 8 |
|
10 | 9 | <p align="center">
|
11 |
| - <img src="./screenshot/isearch-project-demo.gif" width="450" height="513"/> |
| 10 | + <img src="./etc/isearch-project-demo.gif" width="450" height="513"/> |
12 | 11 | </p>
|
13 | 12 |
|
14 |
| -This is an alternative package replacing `ag` searcher. The |
15 |
| -logic behinds this package is similar to |
16 |
| -[Visual Studio](https://visualstudio.microsoft.com/) |
17 |
| -`find and replace` functionalities, but using `isearch`. |
18 |
| -It simply searches `regexp` in each file accordingly to the |
19 |
| -project file tree. |
| 13 | +This is an alternative package replacing `ag` searcher. The logic behinds this |
| 14 | +package is similar to [Visual Studio](https://visualstudio.microsoft.com/) |
| 15 | +`find and replace` functionalities, but using `isearch`. It simply searches |
| 16 | +`regexp` in each file accordingly to the project file tree. |
20 | 17 |
|
21 |
| -`isearch` gives a better visuality than `ag` does. `ag` is |
22 |
| -great but is verbose for me to use because it gives you a |
23 |
| -whole list that matches even the matching line are in the |
24 |
| -exact same line. |
| 18 | +`isearch` gives a better visuality than `ag` does. `ag` is great but is verbose |
| 19 | +for me to use because it gives you a whole list that matches even the matching line |
| 20 | +are in the exact same line. |
25 | 21 |
|
26 | 22 | *P.S. Inspired by [Visual Studio](https://visualstudio.microsoft.com/) `find and replace` preset behavior.*
|
27 | 23 |
|
28 |
| - |
29 | 24 | ## Customization
|
| 25 | + |
30 | 26 | Set the paths you usually want to ignore to search through.
|
| 27 | + |
31 | 28 | ```el
|
32 | 29 | (setq isearch-project-ignore-paths '(".vs/"
|
33 | 30 | ".vscode/"
|
34 | 31 | "node_modules/"))
|
35 | 32 | ```
|
36 | 33 |
|
37 |
| - |
38 | 34 | ## Usage
|
| 35 | + |
39 | 36 | Call it from `minibuffer` directly,
|
| 37 | + |
40 | 38 | ```
|
41 | 39 | M-x isearch-project-forward
|
42 | 40 | ```
|
| 41 | + |
43 | 42 | Or you can bind it globally to any key you want.
|
| 43 | + |
44 | 44 | ```el
|
45 | 45 | (global-set-key (kbd "any-key") #'isearch-project-forward)
|
46 | 46 | ```
|
47 | 47 |
|
48 |
| - |
49 | 48 | ## Contribution
|
| 49 | + |
50 | 50 | If you would like to contribute to this project, you may either
|
51 | 51 | clone and make pull requests to this repository. Or you can
|
52 | 52 | clone the project and establish your own branch of this tool.
|
|
0 commit comments