Skip to content
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

“unit_kilo” and "prefix_with_reset" really work? #1293

Open
jan-rex opened this issue Jan 4, 2025 · 4 comments
Open

“unit_kilo” and "prefix_with_reset" really work? #1293

jan-rex opened this issue Jan 4, 2025 · 4 comments
Labels
question Further information is requested

Comments

@jan-rex
Copy link

jan-rex commented Jan 4, 2025

Hi,
I have tried using “unit_kilo” and “prefix_with_reset,” but they haven’t worked for me. Do they actually work? I am using macOS.

@jan-rex jan-rex added the question Further information is requested label Jan 4, 2025
@PThorpe92
Copy link
Member

unit_kilo does seem to work for me.

image

I'm not sure if prefix_with_reset is actually necessary, as the styles are applied to each individually and it's unlikely to need reset code, and would probably just cause more unneeded text output. I would only use it if you are getting a style applied that you are not expecting and want to clear it first.

@jan-rex
Copy link
Author

jan-rex commented Jan 5, 2025

What I want to do is be able to use unit_kilo and the other parameters, but it has no effect, so I thought using reset would enable its use, but it doesn’t have any effect either.

@jan-rex
Copy link
Author

jan-rex commented Jan 5, 2025

I’m not sure if I’ve misunderstood the purpose of unit_kilo and the others. I thought I understood that they were used to format how the units are displayed. Is that correct, or do they serve a different function?

@PThorpe92
Copy link
Member

Yeah it's you can see the difference in the photo if you look at the lower example, size values that are kb, are displayed in dark blue, where above they are off-white.

size:
  major: {foreground: "#A6ADC8"}
  minor: {foreground: "#89DCEB"}
  number_byte: {foreground: "#CDD6F4"}
  number_kilo: {foreground: "#000FFF"} #  the foreground value was changed to make that happen 
  number_mega: {foreground: "#89B4FA"}

This will affect any size that is displayed in kilobytes
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants