Comments (8)
Hi-
I cannot reproduce this as it is working in my machine (see the screenshot below). Are you using the latest version?
from get-childitemcolor.
Oops you meant they are not ordered correctly? With a quick look, I actually could not see what you are talking about --- could you please elaborate?
from get-childitemcolor.
Yes, I use the latest version. I think I didn't explain the issue correctly. I test a kind of scenario that there are a lot of folders with English name and Chinese name, and a lot of English name and Chinese name files. The picture shows the name of the folders and files are not aligned.
from get-childitemcolor.
Oh I understand --- thanks for the elaboration. I think it must be that the character length calculation in Get-ChildItemColorFormatWide
is broken for unicode characters, since I see this with Korean characters as well. Let me see if I can fix this quickly.
from get-childitemcolor.
It does not look like it would be easy to fix. The issue is for these characters, .Length
method returns the character length, but in printing, these characters takes 2 spaces instead of 1. For example,
> "한글파일".Length
4
I will get back to this when I have more time. Sorry!
from get-childitemcolor.
That's great. Looking forward to the fix. Thanks!
from get-childitemcolor.
@joonro
You may need something like wcwidth
. A reference could be this: https://github.com/timoxley/wcwidth
from get-childitemcolor.
This is fixed thanks to @shiena.
from get-childitemcolor.
Related Issues (20)
- Fails inside OneDrive HOT 3
- Add option to remove the listing of the path HOT 2
- Is it possible to get an `ll` equivalent? HOT 4
- Out-Default function breaks $? HOT 7
- Cannot bind parameter 'ForegroundColor'. Cannot convert value "" to type "System.ConsoleColor". HOT 2
- incorrect spacing after first launch HOT 2
- Feature Req: Show trailing slash for directory names in wide format view HOT 4
- ls command failed for special marks: Sort-Object and InvalidArgument errors HOT 3
- [req] Diferent colors for hard and softlinks plz (especialyhardlinks) HOT 1
- How to customize the color and save it for next use? HOT 2
- Directory and column descriptions only show up on first launch HOT 4
- Previous command error status is discarded HOT 1
- Unicode char in filename causes UInt32 error HOT 1
- Version 2.2.1 not uploaded to PowerShell Gallery HOT 1
- How to support other file extensions like Office files extensions .pptx, .docx, .xlsx? HOT 4
- Unable to find type [uint] on Windows PowerShell 5 HOT 1
- Length-format differs HOT 1
- actual PowerShell have alredy coloring itself HOT 1
- Fails when used in conjunction with the New-Junction command in PSCX
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get-childitemcolor.