Skip to content
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

Question: auto jump to layout/workspace on buffer open #148

Open
tennysontbardwell opened this issue Dec 21, 2023 · 1 comment
Open

Question: auto jump to layout/workspace on buffer open #148

tennysontbardwell opened this issue Dec 21, 2023 · 1 comment

Comments

@tennysontbardwell
Copy link

Disclaimers:

  • This might be a basic question. I had a lot of trouble writing the search query for this question
  • I am using Spacemacs terminology
  • I am asking about "Layers" in my question, but I have the same question with regards to "Sublayers" or "Workspaces"

What currently happens:

  1. Create Layout 1 with buffer A. Create Layout 2 with buffer B.
  2. In (layout 1) buffer A, open a link to buffer B
  3. Buffer B is opened in layout 1

My personal desired behavior:

  • Layout 2, Buffer B is slected

Question:

If I am not the first person to want this behavior, are there any discussions that you can link me to? If I am the first person to want this behavior, then do you have any thoughts on if this is reasonable and how I might go about obtaining it?

Justification/Explanation: (to avoid the XY problem)

For my own personal workflow, I am trying to use org-mode, org-roam, the zettelkasten method, and hyperbole to make linking fast and easy. Sometimes, I open a link in my todo.org to project.org. If I previously worked on project.org in my current emacs session, then I want to jump to it

Alternatives:

I suppose that I could define a perspective with a name, and then add some "goto/load this perspective" command in my project.org file.

@Bad-ptr
Copy link
Owner

Bad-ptr commented Jul 26, 2024

Maybe this can be achieved by advising the switch-to-buffer, display-buffer, etc... Or other functions used to open the "link".
Like: https://github.com/Bad-ptr/persp-mode.el?tab=readme-ov-file#switch-to-buffer-display-buffer-hook-and-other-advices

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

No branches or pull requests

2 participants