2021-06-05 14:24:17 -04:00
|
|
|
;;; ui/tabs/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###if (featurep! :editor evil)
|
|
|
|
|
|
|
|
;;;###autoload (autoload '+tabs:next-or-goto "ui/tabs/autoload" nil t)
|
|
|
|
(evil-define-command +tabs:next-or-goto (index)
|
|
|
|
"Switch to the next tab, or to INDEXth tab if a count is given."
|
2021-07-08 18:41:03 -04:00
|
|
|
(interactive "<c>")
|
2021-07-08 15:24:18 -04:00
|
|
|
(if index
|
|
|
|
(centaur-tabs-select-visible-nth-tab index)
|
2021-06-05 14:24:17 -04:00
|
|
|
(centaur-tabs-forward)))
|
|
|
|
|
|
|
|
;;;###autoload (autoload '+tabs:previous-or-goto "ui/tabs/autoload" nil t)
|
|
|
|
(evil-define-command +tabs:previous-or-goto (index)
|
|
|
|
"Switch to the previous tab, or to INDEXth tab if a count is given."
|
2021-07-08 18:41:03 -04:00
|
|
|
(interactive "<c>")
|
2021-07-08 15:24:18 -04:00
|
|
|
(if index
|
|
|
|
(centaur-tabs-select-visible-nth-tab index)
|
2021-06-05 14:24:17 -04:00
|
|
|
(centaur-tabs-backward)))
|