Skip to content

MenuComplete function not showing menu #639

Closed

Description

@TylerLeonhardt

Environment data

PS Version: 6.0.1
PSReadLine version: 2.0.0-beta1
OS: macOS High Sierra

Steps to reproduce or exception report

> Get-Co # Hit Ctrl+Space or whatever your MenuComplete is set to

Expected behavior would show the menu, however, currently nothing happens - the prompt stays as is.

Activity

  1. lzybkr commented on Mar 1, 2018

    @lzybkr
    Contributor

    I think this is another case of a key binding that can't work on non-Windows.

    On Linux, showkey -a shows that Ctrl+Space is 0 - the nul character, which actually maps to other characters, e.g. Ctrl+2.

  2. felixfbecker commented on May 9, 2019

    @felixfbecker

    It's possible to make Ctrl+Space work by remapping it in iTerm to a character you don't normally use (e.g. ç aka Alt+C) or any code point from the Unicode Private Use Area (e.g.  aka E000).

    Set-PSReadLineKeyHandler -Key '' -Function MenuComplete

    image

  3. daxian-dbw commented on Sep 27, 2019

    @daxian-dbw
    Member

    Given this is by design, I will close this issue.

  4. Elgirhath commented on Oct 2, 2024

    @Elgirhath

    For future usages - you can also rebind the powershell function

    Set-PSReadLineKeyHandler -Chord 'Ctrl+@' -Function MenuComplete
    

    since Ctrl+Space produces output equivalent to Ctrl+@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions