(tab-bar-helpers) Add vterm helper

This commit is contained in:
Marcel Kapfer 2023-06-14 18:07:08 +02:00
parent 8747cda157
commit f6903f318f
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -87,6 +87,11 @@
(interactive) (interactive)
(mmk2410/tab-bar-switch-or-create "Mastodon" #'mastodon)) (mmk2410/tab-bar-switch-or-create "Mastodon" #'mastodon))
(defun mmk2410/tab-bar-run-vterm ()
"Switch to or create a tab running a shell using vterm."
(interactive)
(mmk2410/tab-bar-switch-or-create "term" #'vterm))
(defhydra mmk2410/tab-bar (:color teal :hint nil) (defhydra mmk2410/tab-bar (:color teal :hint nil)
" "
^Apps^ ^Org^ ^Helpers^ ^Misc ^Apps^ ^Org^ ^Helpers^ ^Misc
@ -95,6 +100,7 @@
_m_: Mail _A_: Agenda + Journal _SPC_: New _m_: Mail _A_: Agenda + Journal _SPC_: New
_i_: IRC (erc) _j_: Journal _f_: Previous Tab _i_: IRC (erc) _j_: Journal _f_: Previous Tab
_M_: Mastodon _Q_: Close Tab _M_: Mastodon _Q_: Close Tab
_t_: vterm
" "
;; Apps ;; Apps
@ -102,6 +108,7 @@
("m" mmk2410/tab-bar-run-mail) ("m" mmk2410/tab-bar-run-mail)
("i" mmk2410/tab-bar-run-irc) ("i" mmk2410/tab-bar-run-irc)
("M" mmk2410/tab-bar-run-mastodon) ("M" mmk2410/tab-bar-run-mastodon)
("t" mmk2410/tab-bar-run-vterm)
;; Org ;; Org
("a" mmk2410/tab-bar-run-agenda) ("a" mmk2410/tab-bar-run-agenda)
("A" mmk2410/tab-bar-run-agenda-journal) ("A" mmk2410/tab-bar-run-agenda-journal)