16

I recently started using Alacritty instead of the default Terminal.app on macOS. When using Terminal, I can jump word by word using Option with left and right arrow keys. In Alacritty this key combination is causing ;3D and ;2D to print to the screen instead of the cursor moving.

Is there a way configure Alacritty to jump word by word using Option and arrow keys?

vhs
  • 9,316
  • 3
  • 66
  • 70
Victor Cui
  • 1,393
  • 2
  • 15
  • 35

1 Answers1

38

With tmux and zsh, add these to the alacritty config:

key_bindings:
  ...
  - { key: Right, mods: Alt, chars: "\x1BF" }
  - { key: Left,  mods: Alt, chars: "\x1BB" }
cfstras
  • 1,613
  • 15
  • 21
  • Thank you! Just remember to remove the other Left and Right shortcuts in case you have other configs – Edenshaw Sep 19 '22 at 19:49