New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Color output of gci #9270
Comments
We could track this in #7857 PSMore. |
Is the PSMore project actively maintained any more ? It seems not. |
@musm This project is not even started. |
Bump, it doesn't seem like it's activate at all? |
We want to wait until we have a consistent way within the engine to support attributed text |
I have an implementation here #14403 Does the design look reasonable? Are there other default extensions (with colors/styles) that should be included by default? Originally I considered supporting images and audio files, but don't necessarily want to add a huge number of entries to the extension hashtable. |
Love this idea because readability is paramount |
Love it. I was never keen on how Ubuntu gives directories a background color, and would be happy if we did not copy that stylistic choice. A distinct foreground color to distinguish folders without a background would be my preference. |
Allowing users to configure |
😖 😕 😠 Why are core team members wasting time implementing stuff that's already done |
@Jaykul I did this on the weekend on my free time. |
Using ansi escape sequences directly isn't very user friendly or verbose. I still don't understand why we aren't putting color support directly into the formatting/output layer. |
@ThomasNieto for consoles, ANSI escape sequences ARE the de facto standard. PowerShell needs to work with existing native commands that already output ANSI escape sequences. In this case, the end user does NOT need to work directly with ANSI escape sequences. That is the whole point of $PSStyle.FileInfo.Directory = $PSStyle.Foreground.Blue |
@ThomasNieto I think you're missing the point of "$($PSStyle.Foreground.Red)Merry $($PSStyle.Foreground.Green)Christmas" Or combine multiple styles: "$($PSStyle.Italic+$PSStyle.Foreground.Yellow+$PSStyle.Background.Magenta)Hello" With the automatic variable, you also get tab-completion. |
I believe most of users would prefer to pick up a predefined color theme and do not waste time manually setting dozens of parameters. |
This is directly in the formatting/output layer. It's modifying the default format.ps1xml (which is in C# now, because it's faster that way) |
First, I really love this idea! I have two comments:
|
FileInfo.Extension includes the leading period, so it would be less optimal to exclude it. Allowing a regex will make things slower. |
🎉This issue was addressed in #14403, which has now been successfully released as Handy links: |
Summary of the new feature/enhancement
Add colored output so when performing
gci
we have an output that is similar to the colored output in a linux shell.Proposed technical implementation details (optional)
https://github.com/joonro/Get-ChildItemColor
The text was updated successfully, but these errors were encountered: