Add Implementation Design Proposals for human-readable Size, DateTime, and TimeSpan display#171
Draft
Add Implementation Design Proposals for human-readable Size, DateTime, and TimeSpan display#171
Conversation
…ting Co-authored-by: kilasuit <6355225+kilasuit@users.noreply.github.com> Agent-Logs-Url: https://github.com/kilasuit/PowerShell/sessions/a04269ca-36b1-418f-ad89-0ff2714545f5
Copilot
AI
changed the title
[WIP] Create implementation design proposal for easier to read file lengths
Add Implementation Design Proposals for human-readable file size display
Mar 25, 2026
Owner
|
@copilot Could you also look to fill out the other 2 design proposals please & seperate each into separate commits please |
Author
Done. I fully expanded both remaining proposals and split them into separate commits:
|
Copilot
AI
changed the title
Add Implementation Design Proposals for human-readable file size display
Add Implementation Design Proposals for human-readable Size, DateTime, and TimeSpan display
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Get-ChildItemdisplays raw byte counts for file sizes, making large values (e.g.,1298450612224) difficult to read at a glance. Per the issue, this work produces implementation design proposals only — no runtime implementation changes.New files
docs/design-proposals/human-readable-file-size-display.md— Full IDP for theLengthcolumn:LengthStringinFileSystemProvider.cs(raw.ToString())DisplayHumanReadableFileSizeinUtils.cs(already used for copy/remove progress, binary-unit 1024-based)N0), human-readable units (1.18 TB), or the latter wrapped in an experimental featurePSFileInfoHumanReadableSizeexperimental feature — mirrors precedent set byPSAnsiRenderingFileInfodocs/design-proposals/human-readable-datetime-display.md— Full IDP for human-readableDateTimedisplay:LastWriteTimeStringand relevant formatter locationsdocs/design-proposals/human-readable-timespan-display.md— Full IDP for human-readableTimeSpandisplay:System.TimeSpanlist/table/wide views inDotNetTypes_format_ps1xml.csAdditionally, the DateTime and TimeSpan proposal expansions were delivered in separate commits per PR feedback.
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.