randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Alt to skip words #278

Closed MeerKatDev closed 3 years ago

MeerKatDev commented 3 years ago

Is it possible to press alt + arrows left and right to go faster through the commands?

randy3k commented 3 years ago

Which shell are you using?

MeerKatDev commented 3 years ago

zsh, I'm on macOS Big Sur

randy3k commented 3 years ago

Put these in your .zshrc.

bindkey -e  # emacs mode
bindkey "\e[1;3C" forward-word
bindkey "\e[1;3D" backward-word
bindkey "\e[3~" delete-char

I also added the last line in case you also want delete-char.

randy3k commented 3 years ago

See this section: https://github.com/randy3k/Terminus#alt-leftright-to-move-between-words-unix

MeerKatDev commented 3 years ago

thank you very much, really helpful!