Add vterm find-file alias and clear scrollback binding
This commit is contained in:
parent
f8035efb4d
commit
8a56a1fc70
@ -8,7 +8,9 @@
|
||||
(call-interactively #'vterm)))
|
||||
:config
|
||||
(evil-collection-vterm-setup)
|
||||
(general-def 'insert vterm-mode-map "C-<escape>" #'vterm-send-escape)
|
||||
(general-def 'insert vterm-mode-map
|
||||
"C-<escape>" #'vterm-send-escape
|
||||
"C-l" #'vterm-clear-scrollback)
|
||||
;; Add a hook when vterm changes the directory
|
||||
(defvar vterm-directory-change-hook nil
|
||||
"Hooks to be run after vterm changes the directory")
|
||||
@ -26,6 +28,7 @@
|
||||
(vterm-environment '("TYPEWRITTEN_CURSOR=terminal"))
|
||||
(vterm-ignore-blink-cursor t)
|
||||
(vterm-eval-cmds '(("find-file" find-file)
|
||||
("ff" find-file)
|
||||
("message" message)
|
||||
("vterm-clear-scrollback" vterm-clear-scrollback)
|
||||
("man" man)
|
||||
|
@ -142,6 +142,7 @@ if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
|
||||
alias clear='vterm_printf "51;Evterm-clear-scrollback";tput clear'
|
||||
alias man='vterm_cmd man'
|
||||
alias ediff='vterm_cmd ediff'
|
||||
alias ff='vterm_cmd find-file'
|
||||
fi
|
||||
|
||||
# This is to change the title of the buffer based on information provided by the
|
||||
|
Loading…
Reference in New Issue
Block a user