【问题标题】:PhpStorm zsh terminal CTRL+(leftArrowKey or rightArrowKey) not workingPhpStorm zsh 终端 CTRL+(leftArrowKey 或 rightArrowKey)不工作
【发布时间】:2018-03-17 07:40:54
【问题描述】:

在 phpstorm 终端窗口(使用 zsh shell)上,当我执行 CTRL+(leftArrowKey 或 rightArrowKey)时发生了什么:

Navigation behavior error

在其他终端模拟器中搜索了该问题,找到了这个解决方案:

搜索到的解决方案 -> Looking for ALT+LeftArrowKey solution in zsh

所以我已经按照用户 lolesque 说的去做了:

Tried lolesque solution 并将这些行添加到我的 ~/.zshrc 文件中:

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

问题是找到的解决方案不起作用:|。

任何帮助将不胜感激。

【问题讨论】:

    标签: terminal phpstorm zsh


    【解决方案1】:

    将此添加到~/.zshrc

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

    别忘了重启终端或者去

    source ~/.zshrc
    

    用于应用更改。

    来源:https://gist.github.com/ecksite/e341835ef266e67b63a2620aee692fdd

    【讨论】:

      【解决方案2】:

      这是一个错误,目前这些绑定仅支持 Bash。 请在这里投票:https://youtrack.jetbrains.com/issue/IDEA-180154

      【讨论】:

        猜你喜欢
        • 2017-07-13
        • 2022-06-24
        • 2018-10-27
        • 2021-05-07
        • 1970-01-01
        • 2012-09-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多