-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWG-Interactive-IntelliSensetab completiontab completion
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.
vexx32 and ThomasNieto
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility moduleWG-Interactive-IntelliSensetab completiontab completion