Skip to content

Make completer menus reusable #1818

@Jaykul

Description

@Jaykul

Regarding the existing MenuComplete function (Ctrl+Space) and the new "F2" history menu, a couple of requests:

  1. Can we expose these menus as commands to make them usable by other modules as a way to prompt for input? It's always frustrating for PowerShell script authors that $Host.UI.PromptForChoice is so hard to use ...
  2. Can we offer an command to turn one of these menus "on by default" to provide a slightly more intellisense-like feel to the prompt? Most people won't want that all the time, but it could be super useful on a temporary basis (particularly for learning new modules, since the MenuComplete completer shows the full syntax block for commands):
    image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions