Allow mouse pasting in term based shells
This commit is contained in:
parent
279e70106f
commit
0a202138b9
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue