Thanks to visit codestin.com
Credit goes to github.com

Skip to content

On PC alt+<arrow>bindings don't work in vscode (shift+arrow do) #377

@sparcbr

Description

@sparcbr

It would be nice to put in the docs that in some termis you need to use shift+ and others alt+

I was trying to make alt+arrow commands work and it would work in konsole but not in in wave-terminal or vscode.
My .zshrc has the defaults:

z4h bindkey z4h-cd-back    Alt+Left   # cd into the previous directory
z4h bindkey z4h-cd-forward Alt+Right  # cd into the next directory
z4h bindkey z4h-cd-up      Alt+Up     # cd into the parent directory
z4h bindkey z4h-cd-down    Alt+Down   # cd into a child directory

Using cat -v and hitting alt+left outputs:

^[[1;3D -- in konsole
^[[1;5D - in wave and vscode (same as ctrl+left)

and hitting shift+left:

nothing outputs in konsole
^[[1;2D -- in vscode

Also both bindings, with alt-mod, and with shift-mod are active:

> bindkey | grep cd-back
"^[[1;2D" z4h-cd-back
"^[[1;3D" z4h-cd-back 

So I guess I can use alt mod in konsole and shift in vscode/wave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions