-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spacemacs-layouts: Add project buffers to new persp
Fix issue #11282. When a new perspective (layout) is created and we are in a Projectile project, add all buffers belonging to that project to the perspective. * layers/+spacemacs/spacemacs-layouts/funcs.el (spacemacs//add-project-buffers-to-persp): Add new function. * layers/+spacemacs/spacemacs-layouts/packages.el (spacemacs-layouts/init-persp-mode): Add spacemacs//add-project-buffers-to-persp to persp-created-functions.
- Loading branch information
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9fcf8c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change make no sense to
SPC p l
users. Every time I want to open a project in new perspective, the buffers of the previous project are all added to the new perspective which is for another project.9fcf8c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Miciah Do you know how ynilu's issue could be solved?
9fcf8c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for letting me know about the problem! Please see #12287 for a proposed solution.
9fcf8c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ynilu The following PR is now on the develop branch:
spacemacs-layouts: Fix adding buffers to new persp #12287