-
-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching projects does not include the current project #1016
Comments
That's intentional. The assumption is that you'd never want to select the project you're already in - you can simply cancel the command to stay in it. |
Just use |
For my part, I don't like the idea to remove the current project from the project selection buffer. I often call To make it behaves as I prefer, I do this: (defun projectile-relevant-known-projects () projectile-known-projects)
(defun projectile-relevant-open-projects () (projectile-open-projects)) It seems risky but it works for me. |
I do the same. I fixed this by advising Maybe place the current project last in the list? Then it's there if you search for it but it won't be the first suggestion. |
…oject added new defcustom variable projectile-current-project-on-switch added defcustom and implemented conditions based on it
This bug was fixed in bbatsov/projectile#1016
This bug was fixed in bbatsov/projectile#1016
Expected behavior
The list of projects to switch to should include the current project. My workflow includes C-c p p to open other files of the current project, but this seemed to have stopped working with an update.
Actual behavior
When switching projects from a buffer of a file whose project is tracked, the list of projects to switch to does not include the project of the file in the buffer.
Steps to reproduce the problem
C-c p p to switch to a project, and open a file. C-c p p again, and the same project is not listed.
Environment & Version information
Projectile version information
Emacs version
24.5.1
Operating system
Linux
The text was updated successfully, but these errors were encountered: