Skip to content

Commit

Permalink
add project-grep
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Aug 12, 2024
1 parent 0ae7533 commit 9cf7aec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content/en/usage/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The shortcut `C-x d` opens a project explorer on the left side. Another keypress
<img class="" src="/filer.png" alt="Lem Filer on the left window">


### Find file in project
### Project commands

> Project related commands were added in Lem 2.1
Expand All @@ -78,6 +78,9 @@ There are also the commands:
| `project-find-file-next-window` | `C-x 4 p f` | open a file in another window |
| `project-root-directory` | `C-x p d` | open the project root with Lem's directory-mode |
| `project-root-directory-next-window` | | open the project root in another window |
| `project-grep` | `C-x p g` | run the **grep** command from the project root |

Note: `project-grep` was added in August of 2024.

These commands allow to **switch** between projects:

Expand Down Expand Up @@ -331,6 +334,9 @@ to re-play the macro only in the selected region.

this presents the results in a two-panes window. You can edit lines in the results buffer, changes are reflected immediately on the files, and updated on the right side. You can use search and replace `M-x query-replace` in the results buffer.

See also: `M-x project-grep`, bound to `C-x p g`.


## multiple cursors

Use `M-C` (Alt and capital c), `M-x add-cursors-to-next-line` to add a cursor to the next line.
Expand Down

0 comments on commit 9cf7aec

Please sign in to comment.