feat(workspaces): make tab-bar tabs workspace-local
This commit is contained in:
parent
aac3c15cde
commit
191745424b
2 changed files with 21 additions and 1 deletions
|
@ -276,4 +276,10 @@ stored in `persp-save-dir'.")
|
|||
(when (get-buffer buffer-name)
|
||||
(setq buffer-name (generate-new-buffer-name buffer-name)))
|
||||
(make-indirect-buffer base-buffer buffer-name t)))))
|
||||
(setq +workspaces--indirect-buffers-to-restore nil))))
|
||||
(setq +workspaces--indirect-buffers-to-restore nil)))
|
||||
|
||||
;;; tab-bar
|
||||
(add-hook! 'tab-bar-mode-hook
|
||||
(defun +workspaces-set-up-tab-bar-integration-h ()
|
||||
(add-hook 'persp-before-deactivate-functions #'+workspaces-save-tab-bar-data-h)
|
||||
(add-hook 'persp-activated-functions #'+workspaces-load-tab-bar-data-h))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue