Allow mouse pasting in term based shells

This commit is contained in:
Sheng Yang 2019-05-23 15:12:29 -04:00 committed by smile13241324
parent 279e70106f
commit 0a202138b9
2 changed files with 5 additions and 0 deletions

View File

@ -2331,6 +2331,7 @@ Other:
- Added =eshell= =Ivy= completion bindings (thanks to bb2020):
- ~M-l~ =spacemacs/ivy-eshell-history=
- ~TAB~ =spacemacs/pcomplete-std-complete=
- Enabled mouse based pasting into term shells (thanks to Sheng Yang)
**** Shell Scripts
- Added new company-shell environment variable backend
(thanks to Alexander-Miller)

View File

@ -254,6 +254,10 @@
;; hack to fix pasting issue, the paste transient-state won't
;; work in term
(evil-define-key 'normal term-raw-map "p" 'term-paste)
(evil-define-key 'normal term-raw-map (kbd "<mouse-2>") 'term-mouse-paste)
(evil-define-key 'insert term-raw-map (kbd "<mouse-2>") 'term-mouse-paste)
(evil-define-key 'normal term-raw-map (kbd "<mouse-3>") 'term-mouse-paste)
(evil-define-key 'insert term-raw-map (kbd "<mouse-3>") 'term-mouse-paste)
(evil-define-key 'insert term-raw-map (kbd "C-c C-d") 'term-send-eof)
(evil-define-key 'insert term-raw-map (kbd "C-c C-z") 'term-stop-subjob)
(evil-define-key 'insert term-raw-map (kbd "<tab>") 'term-send-tab)