-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPC TAB switches to scratch buffer when using layouts #8879
Comments
I second this comment with the observation that sometimes its not the scratch buffer that comes up. I also notice that project files seem to get buried in the recent file list rather than being shown as open buffers when I use layouts. |
This is because your recent files are part of another layout. They can only be part of one layout at a time. |
Thank you @CeleritasCelery this helps. So what seems to be happening is that when a file has been opened before, opening it in a layout does not add it to that layout unless it is explicitly added with There are so many ways of opening files in spacemacs and I use them interchangeably ( |
@dathinaios I understand what your saying, I initially thought it was a bug too. But believe it or not, buffer isolation is a feature. if opening a buffer in a layer automatically added it to that layer, then all buffers would be essesntially global. There are some functions such as If you find that you are always trying to open buffers from other layouts, you should ask yourself if you would not be better off using the default layout, which has global scope. The way this is designed to work, you shouldn't have much need to share buffers between layouts as they should be conceptually distinct. Workspaces allow you to have different groups of window configurations but they all share the same buffers. |
@CeleritasCelery I see what you are saying. The isolation will then allow to batch run operations without inadvertently editing unrelated buffers. Ok, that's quite fun :) I will give it a try. Now that I know what is going on maybe I will find this way of working to be better. Thanks! |
You may want to add a comment to #8587 about your confusion. And if you feel that you have the answers you need feel free to close this issue. |
Description![:octocat: :octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png)
When using different layouts
SPC Tab
keeps switching to the scratch buffer instead of the last used one.Reproduction guide 馃
SPC l l
to create a new layoutSPC f r
to open some recent file [file 1]SPC f r
to open another fileSPC Tab
to switch to the first oneObserved behaviour: 馃憖 馃挃
Switches to the scratch buffer
Expected behaviour: 鉂わ笍 馃槃
Should switch to [file 1]
System Info 馃捇
The text was updated successfully, but these errors were encountered: