Skip to content

Add projectile-add-and-switch-project command#1973

Open
bbatsov wants to merge 1 commit intomasterfrom
feature/1697-add-and-switch-project
Open

Add projectile-add-and-switch-project command#1973
bbatsov wants to merge 1 commit intomasterfrom
feature/1697-add-and-switch-project

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 15, 2026

Summary

  • Adds projectile-add-and-switch-project command that prompts for a directory, adds it to known projects, and immediately switches to it
  • Similar to project.el's "choose a directory" workflow
  • Also added to the Projectile menu under Projects

Closes #1697

Test plan

  • Call M-x projectile-add-and-switch-project, select a directory — verify it's added to known projects and switched to
  • Verify the directory appears in projectile-switch-project afterwards

Closes #1697

Add a new command that combines projectile-add-known-project and
projectile-switch-project-by-name, allowing users to pick a directory,
register it as a known project, and switch to it in one step.
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.

[Feature] Make it possible to add and switch to a new directory (like "choose a directory" in project.el)

1 participant

Comments