Open CsBigDataHub opened 3 years ago
(add-hook 'persp-before-deactivate-functions
(defun +workspaces-save-tab-bar-data-h (_)
(when (get-current-persp)
(set-persp-parameter
'tab-bar-tabs (tab-bar-tabs)))))
(add-hook 'persp-activated-functions
(defun +workspaces-load-tab-bar-data-h (_)
(tab-bar-tabs-set (persp-parameter 'tab-bar-tabs))
(tab-bar--update-tab-bar-lines t))))
This snippet has been working for me.
The snippet saves the configuration of tab-bar to files:
(add-hook 'persp-before-save-state-to-file-functions
(defun +workspaces-save-tab-bar-data-to-file-h (&rest _)
(when (get-current-persp)
(set-persp-parameter 'tab-bar-tabs (frameset-filter-tabs (tab-bar-tabs) nil nil t))
allow keeping a distinct set of tabs per-perspective.
from README of https://github.com/nex3/perspective-el
Opening a issue similar to https://github.com/nex3/perspective-el/issues/138