Skip to content

Add projectile-last-known-project variable#1975

Open
bbatsov wants to merge 1 commit intomasterfrom
feature/1809-last-known-project
Open

Add projectile-last-known-project variable#1975
bbatsov wants to merge 1 commit intomasterfrom
feature/1809-last-known-project

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 15, 2026

Summary

  • Adds projectile-last-known-project variable that tracks the root of the most recently accessed project
  • Set automatically by projectile-acquire-root, which is called by most Projectile commands
  • Allows users to reference the last project from non-project buffers (e.g., *scratch*, *Messages*)

Closes #1809

Test plan

  • Visit a file in a project, run any Projectile command — projectile-last-known-project should be set to that project's root
  • Switch to a non-project buffer — projectile-last-known-project still holds the previous project root
  • Switch to a different project — variable updates to the new project root

Closes #1809

Track the most recently accessed project root in
projectile-last-known-project, set automatically by
projectile-acquire-root. This allows users to reference
the last project even from non-project buffers.
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.

Add variable to remember most recent project

1 participant

Comments