diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-10-04 09:38:56 +0200 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2019-10-04 09:55:54 +0200 |
commit | 529447a53817bf0f791f9684865b527049dbcabc (patch) | |
tree | 0080986551bfc1986d34fd689befd5468fce0b0f /helm-buffers.el | |
parent | 884cbe97dc587c0e38680bbe3279b4cf0bbc82bc (diff) |
Allow switching to buffer in its tab
* helm-buffers.el (helm-buffers-maybe-switch-to-tab): New user var.
* helm-utils.el (helm-window-show-buffers): Do it.
(helm-buffers-switch-to-buffer-or-tab): New.
(helm-buffers--get-tab-from-name): New.
(helm-buffers--buffer-in-tab-p): New.
Diffstat (limited to 'helm-buffers.el')
-rw-r--r-- | helm-buffers.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helm-buffers.el b/helm-buffers.el index 4fd9991d..b8fc6c7f 100644 --- a/helm-buffers.el +++ b/helm-buffers.el @@ -125,6 +125,13 @@ Also if some pretty names are too long you can add your own abbreviation here." :type '(alist :key-type symbol :value-type string) :group 'helm-buffers) + +(defcustom helm-buffers-maybe-switch-to-tab t + "Switch to buffer in its tab when non nil. +This have no effect when `tab-bar-mode' is not available." + :group 'helm-buffers + :type 'boolean) + ;;; Faces ;; |