Skip to content

Consider removing Format-Table's hard 10-column limit in the absence of a -Property argumentΒ #20108

Open
@mklement0

Description

Summary of the new feature / enhancement

Format-Table appears to have a hard-coded limit of 10 output columns in the absence of -Property * (or a -Property argument with more than 10 property names), which isn't necessary if the terminal width can accommodate additional columns (whether with or without -AutoSize).

E.g. there's no reason not to render all 11 columns in the following example:

[pscustomobject] @{
  'p1'=1;
  'p2'=1;
  'p3'=1;
  'p4'=1;
  'p5'=1;
  'p6'=1;
  'p7'=1;
  'p8'=1;
  'p9'=1;
  'p10'=1;
  'p11'=1;
  } | Format-Table

Proposed technical implementation details (optional)

No response

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.WG-Interactive-Consolethe console experienceWG-NeedsReviewNeeds a review by the labeled Working Group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions