PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

ctrl+h cannot work as same as backspace in MenuComplete

Open Xdminsy opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

image

Environment data

PS Version: 7.4.5
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.5
PSReadLine EditMode: Emacs
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 9001

Steps to reproduce

Run pwsh -noprofile for pure powershell start Run Set-PSReadLineOption -BellStyle None -EditMode Emacs to bind emacs hotkeys, and ctrl+h can delete a character backward now. Input ls - then press ctrl+space for MenuComplete, The Path is first completion so get highlighted Press L and the LiteralPath is the possible completion, while the iteralPath is highlighted Press ctrl+h

Expected behavior

Should be same as pressing backspace. The actual command should be ls - and following a highlit Path

Actual behavior

The actual command becomes ls -iteralPath. While the cursor is at character i. It accepts the completion then delete a character backward.

Xdminsy avatar Sep 12 '24 14:09 Xdminsy