ooo4

vscode 中的 zsh 多了个 "\",有人知道怎么取消这个吗?

  •  
  •   ooo4 · Apr 11, 2024 · 1636 views
    This topic created in 762 days ago, the information mentioned may be changed or developed.

    img

    多了个 \ 导致 zsh-autosuggestions 的提示会错位,就贼难用

    我输入的是npx eslint ./index.js,但是显示的是 npxx eslint ./index.j s

    img

    现在我只能每次执行完命令后,手动再输入一次zsh才行

    这个只会再 vscode 的终端才会出现,其他终端都是正常的

    2 replies    2024-04-11 16:34:38 +08:00
    jswxg
        1
    jswxg  
       Apr 11, 2024
    这是 zsh 自动转义功能,要关闭可以在 ~/.oh-my-zsh/lib/misc.zsh 里把下面对应的代码注释掉即可。

    if [[ $ZSH_VERSION != 5.1.1 ]]; then
    for d in $fpath; do
    if [[ -e "$d/url-quote-magic" ]]; then
    if is-at-least 5.1; then
    autoload -Uz bracketed-paste-magic
    zle -N bracketed-paste bracketed-paste-magic
    fi
    autoload -Uz url-quote-magic
    zle -N self-insert url-quote-magic
    break
    fi
    done
    fi
    ooo4
        2
    ooo4  
    OP
       Apr 11, 2024
    我这个应该是 vscode 的 bug ,我拖动终端的宽度,就正常了
    @jswxg
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5512 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:47 · PVG 13:47 · LAX 22:47 · JFK 01:47
    ♥ Do have faith in what you're doing.