-
Notifications
You must be signed in to change notification settings - Fork 35.7k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplanterminalGeneral terminal issues that don't fall under another labelGeneral terminal issues that don't fall under another labelterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.terminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integrationAn issue in the terminal specific to PowerShell, including shell integration
Milestone
Description
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
brcrista, reduckted, pthorin, PalmEmanuel, Leon99 and 1 more
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insiderson-testplanterminalGeneral terminal issues that don't fall under another labelGeneral terminal issues that don't fall under another labelterminal-shell-integrationShell integration infrastructure, command decorations, etc.Shell integration infrastructure, command decorations, etc.terminal-shell-pwshAn issue in the terminal specific to PowerShell, including shell integrationAn issue in the terminal specific to PowerShell, including shell integration