Skip to content

Format-* -View parameter should have autocompletion #9733

Closed

Description

Summary of the new feature/enhancement

I make use of Format-List -View, Format-Table -View etc a lot, and always try to provide multiple views for objects in the packages I maintain. However, these views are not discoverable - there is no autocompletion, and providing an unambiguous prefix also doesn't work, you have to remember and type out the whole view name.

If the output type of the previous pipeline step is known (i.e. because the cmdlet has [OutputType()] declared, it's a variable, or a ForEach-Object etc), PowerShell should look up what views of that type (list/table/custom) are available and autocomplete them. E.g. Format-List -View v should autocomplete to Format-List -View Verbose if such a view is defined.

Activity

  1. added
    Issue-Enhancement
    on May 26, 2019
  2. MartinGC94 commented on Jul 30, 2021

    @MartinGC94
    Contributor

    I think this was fixed with #14513

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

    Issue-EnhancementResolution-FixedWG-CmdletsWG-Interactive-IntelliSense

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions