Skip to content

Add projectile-forget-projects-under and a zombie-cleanup alias#2014

Merged
bbatsov merged 1 commit into
masterfrom
feature/forget-projects-under
Jun 15, 2026
Merged

Add projectile-forget-projects-under and a zombie-cleanup alias#2014
bbatsov merged 1 commit into
masterfrom
feature/forget-projects-under

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Borrows project.el's granular known-project cleanup. projectile-forget-projects-under forgets every known project under a directory - immediate children by default, the whole subtree with a prefix arg. Matching is lexical (after file-truename for local paths), so it works even when the directory is already gone, which is usually why you'd want to forget a batch of projects.

Also adds projectile-forget-zombie-projects as an alias for projectile-cleanup-known-projects, so folks migrating from project.el find it under the expected name.

Granular known-project cleanup, borrowed from project.el. The new
projectile-forget-projects-under drops every known project located
under a directory - immediate children by default, or the whole subtree
with a prefix argument. Matching is lexical (after file-truename for
local paths), so it still works when the directory itself is already
gone, which is the common reason you'd want to forget a batch of
projects in the first place.

Also add projectile-forget-zombie-projects as an alias for the existing
projectile-cleanup-known-projects, so users migrating from project.el
find the command under the name they expect.
@bbatsov bbatsov merged commit 6a543ae into master Jun 15, 2026
10 checks passed
@bbatsov bbatsov deleted the feature/forget-projects-under branch June 15, 2026 13:01
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