-
Notifications
You must be signed in to change notification settings - Fork 44
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
restrict buffers only to frame/window with vertico/consult #125
Comments
Emacs Frame -- is a "System(OS) Window". So you want your buffer list to be "isolated" between Emacs Frames? |
thank you for the quick overview! I want an isolated buffer list for each perspective. At the moment I have all buffers in each perspective when using ... and when I am writing this, I assume that this is normal and I have to use |
(defun compleseus/pre-init-persp-mode ()
(spacemacs|use-package-add-hook persp-mode
:post-config
(setq
spacemacs--persp-display-buffers-func 'spacemacs/compleseus-switch-to-buffer
spacemacs--persp-display-perspectives-func 'spacemacs/compleseus-spacemacs-layout-layouts))) I assume it is this spacemacs part which does it |
with (defun spacemacs/compleseus-switch-to-buffer ()
"`consult-buffer' with buffers provided by persp."
(interactive)
(with-persp-buffer-list ()
(consult-buffer))) and (defvar spacemacs--persp-display-buffers-func 'ignore
"Function to display buffers in the perspective.")
(defun spacemacs/persp-buffers ()
"Call the function defined in `spacemacs--persp-display-buffers-func'"
(interactive)
(call-interactively spacemacs--persp-display-buffers-func)) |
Yes, You may wish to bind this function to C-x b or other keys you like. (with-eval-after-load "persp-mode-autoloads"
(with-eval-after-load "consult")
(defun my/consult-switch-to-buffer ()
"`consult-buffer' with buffers provided by persp."
(interactive)
(with-persp-buffer-list () (consult-buffer))
(global-set-key (kbd "C-x b") #'my/consult-switch-to-buffer))) There is also |
I think this works quite well for me, thank you very much! |
It works with consult, but I wonder if there's a way to get it working with just Vertico - i.e. the raw |
Thank you! This works perfectly. |
Hi,
coming from spacemacs I am used to have only buffers in each frame/window (sorry, I do not understand the difference yet in terms of persp).
With a plain vanilla evil-vertico-consult installation of
persp
I am having a complete sharing of all buffers and sometimes the open buffer in another window/frame changes when I active in a new frame/window.Does anyone have a hint how I can get a restriction of the buffers only to the frames/windows? I have the feeling that this might be due to vertico/consult...
Thank you in advance!
The text was updated successfully, but these errors were encountered: