Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctrl+h cannot work as same as backspace in MenuComplete #4170

Open
3 tasks done
Xdminsy opened this issue Sep 12, 2024 · 0 comments
Open
3 tasks done

ctrl+h cannot work as same as backspace in MenuComplete #4170

Xdminsy opened this issue Sep 12, 2024 · 0 comments
Labels
Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@Xdminsy
Copy link

Xdminsy commented Sep 12, 2024

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • 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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Sep 12, 2024
@Xdminsy Xdminsy changed the title MenuComplete cannot handle ctrl+h as same as backspace ctrl+h cannot work as same as backspace in MenuComplete Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

1 participant