Is there a way to map Shift-left
or other arrow keys to custom functions in term-char-mode
?
I tried, but without luck:
(define-key term-mode-map [s-left] 'sandric/term-switch-line-mode)
Entering Shift-left
in my terminal gives [1;2D
, so I also tried:
(define-key term-mode-map "[1;2D" 'sandric/term-switch-line-mode)
But that also does nothing.