You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Files and searches already work across related projects; buffers and
TODOs are the other two things you want when a library and its caller are
separate repositories. s-p n b switches to a buffer open in any of them,
s-p n o runs multi-occur over those buffers, and s-p n t gathers the
family's annotations into the search reviewer.
`projectile-project-buffers' already took a project, so the group form is
a mapcan over it, de-duplicated because two members can nest. Todos
needed a little more: its body now takes a list of projects, and
`projectile-todos' is the single-project call of it, the way
`projectile-search-review' is for search.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@
11
11
-[#2160](https://github.com/bbatsov/projectile/pull/2160): Add `projectile-find-file-in-sibling-projects` (`s-p n f`) and `projectile-search-in-sibling-projects` (`s-p n s`), which work across the family of related projects rather than just the one you're in.
12
12
- Both are built on `projectile-find-file-in-projects` and `projectile-search-in-projects`, which take any list of projects, so a command for a group of your own is a two-line wrapper.
13
13
- A group search puts every match in one `*projectile-search*` buffer, named relative to the directory containing the group, so each one is labelled with the project it came from.
14
+
-[#2163](https://github.com/bbatsov/projectile/pull/2163): Add `projectile-switch-to-buffer-in-sibling-projects` (`s-p n b`), `projectile-multi-occur-in-sibling-projects` (`s-p n o`) and `projectile-todos-in-sibling-projects` (`s-p n t`), so buffers and annotations follow the same family as files and searches.
15
+
-`projectile-switch-to-buffer-in-projects` joins the two existing generic commands, and `projectile-todos` now shares one implementation with its group form.
Copy file name to clipboardExpand all lines: doc/modules/ROOT/pages/cheatsheet.adoc
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,15 @@ Here's a list of the interactive Emacs Lisp functions, provided by Projectile:
88
88
| kbd:[s-p n s]
89
89
| Search the current project and the ones related to it, collecting every match in one reviewable buffer. With a prefix argument the term is an Emacs regexp (see xref:across_repositories.adoc[Working across repositories]).
90
90
91
+
| kbd:[s-p n t]
92
+
| Collect the `TODO`/`FIXME`-style annotations of the current project and the ones related to it into the reviewable search buffer.
93
+
94
+
| kbd:[s-p n b]
95
+
| Switch to a buffer open in the current project or in any related to it.
96
+
97
+
| kbd:[s-p n o]
98
+
| Do a `multi-occur` in the buffers open in the current project and the ones related to it. With a prefix argument, show that many lines of context.
99
+
91
100
| kbd:[s-p v]
92
101
| Run `vc-dir` on the root directory of the project.
0 commit comments