Skip to content

Give todos and multi-occur the same group entry point as the rest - #2182

Open
bbatsov wants to merge 2 commits into
masterfrom
feature/generic-group-commands
Open

Give todos and multi-occur the same group entry point as the rest#2182
bbatsov wants to merge 2 commits into
masterfrom
feature/generic-group-commands

Conversation

@bbatsov

@bbatsov bbatsov commented Aug 28, 2026

Copy link
Copy Markdown
Owner

The sibling commands are meant to be thin wrappers over a generic that takes any list of projects, which is what lets you write the same command for a group of your own. That held for find-file, search and switch-to-buffer, but todos reached the generic through a private projectile--todos and multi-occur had none at all, so the documented two-line wrapper only worked for three of the five.

projectile-todos-in-projects is the old private function under a public name; projectile-multi-occur-in-projects is lifted out of the sibling command.

The sibling commands are meant to be thin wrappers over a generic that
takes any list of projects, which is what lets you write the same command
for a group of your own. That held for find-file, search and
switch-to-buffer; todos reached the generic through a private
`projectile--todos', and multi-occur had none at all.

So `projectile-todos-in-projects' is the old private function under a
public name, and `projectile-multi-occur-in-projects' is lifted out of
the sibling command, which now reads like its three neighbours.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant