0

On phpstorm terminal window (with zsh shell) when I do a CTRL+(leftArrowKey or rightArrowKey) what is happening is this:

Navigation behavior error

Searched the problem in other terminal emulators and found this solution:

Searched solution -> Looking for ALT+LeftArrowKey solution in zsh

So I've done what user lolesque said to do:

Tried lolesque solution and added to my ~/.zshrc file these lines:

bindkey -e
bindkey "^[[5C" forward-word
bindkey "^[[5D" backward-word

The problem is that the solution found does not work :|.

Any help will be appreciated.

nogo0d
  • 1

2 Answers2

0

It's a bug, currently these bindings are only supported for Bash. Please vote here: https://youtrack.jetbrains.com/issue/IDEA-180154

Eugene Morozov
  • 2,790
  • 1
  • 10
  • 17
0

Add this to ~/.zshrc:

bindkey "\e\eOD" backward-word 
bindkey "\e\eOC" forward-word

Don't forget to restart the terminal or to

source ~/.zshrc

for applying the changes.

Source: https://gist.github.com/ecksite/e341835ef266e67b63a2620aee692fdd

GarryOne
  • 1,430
  • 17
  • 21