aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@toptal.com>2026-04-26 07:49:03 +0100
committerBozhidar Batsov <bozhidar@toptal.com>2026-04-26 07:49:03 +0100
commit66b54e9038c8aadf5a515758ca3c0acb03977b0e (patch)
treec14a787d0327c548c0921c241e1839c189a5800f /doc
parentd8e34d08ae8c2344053717b6f21475bd545646f2 (diff)
Add projectile-discard-root-cache command (#1936)
The existing projectile-invalidate-cache always tries to also clear the per-project files cache, which means it either prompts for a project (with prefix arg) or only operates when you're already in a project. Users who just created a marker file in a directory that Projectile previously considered rootless ended up picking an unrelated project from the prompt just to get the root cache flushed. projectile-discard-root-cache is a focused alternative that empties projectile-project-root-cache only. Wired into the menu next to the existing 'Invalidate cache' entry; deliberately not bound on the prefix map since the keymap is already dense.
Diffstat (limited to 'doc')
-rw-r--r--doc/modules/ROOT/pages/projects.adoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc
index c58572c..d08bae8 100644
--- a/doc/modules/ROOT/pages/projects.adoc
+++ b/doc/modules/ROOT/pages/projects.adoc
@@ -822,6 +822,10 @@ The cache is populated lazily and only invalidated when:
project, so this is also the right command to run after creating a new
`.projectile`/`.git`/etc. in a directory that Projectile previously
considered rootless.
+* You call `projectile-discard-root-cache` if you want to clear *only* the
+ project root cache without dropping the per-project file lists - useful
+ when you've just added a marker file and don't want to re-index large
+ projects.
* You restart Emacs.
The cache is keyed on the search start directory and a positive entry is