KEMBAR78
Support missing keybindings in PowerShell · Issue #45705 · microsoft/vscode · GitHub
Skip to content

Support missing keybindings in PowerShell #45705

@Tyriar

Description

@Tyriar

Currently various features don't (typically?) work in the prompt on Windows, for example ctrl+backspace to delete a word, ctrl+shift+left to select the word to the left of the prompt etc. We could expose some API in xterm.js to be able to handle this. For example:

Windows:

  • backspace, delete: Press backspace/delete the number of characters that are selected
  • ctrl+backspace: Backspace the number of chars in the preceeding word

All platforms:

  • ctrl+shift+left/right, shift+left/right: Select from the cursor

Perhaps some API like this would be able to handle the selection requests:

// Select from cursor, in the future if we wanted to select from some other origin we
// could add a third parameter
select(direction: 'left' | 'right' | 'up' | 'down', amount: 'word' | 'char'): void;

/cc @sbatten

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplanterminalGeneral terminal issues that don't fall under another labelterminal-shell-integrationShell integration infrastructure, command decorations, etc.terminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions