Add vterm binding to send C-g

This commit is contained in:
Jeremy Isaac Dormitzer 2024-03-20 12:03:47 -04:00
parent 3394957063
commit 3cc63254ae

View File

@ -38,11 +38,15 @@
(defun vterm-edit-zsh-command-line ()
"Edit the current command line in a temp buffer."
(interactive)
(vterm-send-C-x)
(vterm-send-C-e))
(vterm-send "C-x")
(vterm-send "C-e"))
(defun vterm-send-C-g ()
(interactive)
(vterm-send "C-g"))
:general
(leader-map "v" #'vterm)
(vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line)
(vterm-mode-map "C-x C-e" #'vterm-edit-zsh-command-line
"C-c C-g" #'vterm-send-C-g)
:custom
(vterm-max-scrollback 10000)
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))