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

MenuComplete cannot handle ctrl+h as same as backspace #24277

Closed
5 tasks done
Xdminsy opened this issue Sep 11, 2024 · 4 comments
Closed
5 tasks done

MenuComplete cannot handle ctrl+h as same as backspace #24277

Xdminsy opened this issue Sep 11, 2024 · 4 comments
Labels
Resolution-External The issue is caused by external component(s).

Comments

@Xdminsy
Copy link

Xdminsy commented Sep 11, 2024

Prerequisites

Steps to reproduce

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

Error details

No response

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.5
PSEdition                      Core
GitCommitId                    7.4.5
OS                             Microsoft Windows 10.0.19041
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

menucomplete

@Xdminsy Xdminsy added the Needs-Triage The issue is new and needs to be triaged by a work group. label Sep 11, 2024
@237dmitry
Copy link

237dmitry commented Sep 11, 2024

then press ctrl+space for MenuComplete

I could not open menu. But it works with PSReadline's Windows edit mode. Imho, this is an issue of the PSReadline module, ask them.

@Xdminsy
Copy link
Author

Xdminsy commented Sep 12, 2024

Thanks, I've filed an issue there. PowerShell/PSReadLine#4170

@StevenBucher98 StevenBucher98 added Resolution-External The issue is caused by external component(s). and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Sep 12, 2024
Copy link
Contributor

This issue has been marked as external and has not had any activity for 1 day. It has been be closed for housekeeping purposes.

Copy link
Contributor

microsoft-github-policy-service bot commented Sep 13, 2024

📣 Hey @Xdminsy, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-External The issue is caused by external component(s).
Projects
None yet
Development

No branches or pull requests

3 participants