-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Couple of broken symbols (Nerd Fonts) #20
Comments
Re the disk - was probably one I had attached whilst developing; a SanDisk Extreme SSD I think. You're right the HDD is a bit skeuomorphic but it's clearer than the other and I like it. Idea is they are meant to be example defaults - other than common manufacturers - which one can override with a config /~https://github.com/tuna-f1sh/cyme?tab=readme-ov-file#custom-icons-and-colours |
Absolutely no problem - I did find one or two with my setup and figured let's check all of them while I'm at it and get some inspiration for my custom icons.
That sounds logical. It's funny you said SanDisk Extreme SSD. As luck would have it I also have one in my setup. This is a great project you created. |
Thanks for comments. Looks like it was the Extreme Portable SSD - but that does’t match what’s in the defaults either…must have made a error copying. Since SanDisk just makes external drives, I’m tempted to have it as a default for the vendor rather than project specific. |
Sounds reasonable. And SD / Micro SD cards, which SanDisk produces a lot, wouldn't be recognised by their individual VID/PID but by the VID/PID of the card reader instead. Maybe it would be even better if you use the usb_flash_drive symbol (f129e) as default for the vendor and the hard_drive symbol (f0a0) for the Extreme Portable SSD VID/PID. SanDisk produces so many more different kinds of thumb drives and only a handful of external SSDs. All the other (SanDisk) outliers like a card reader belong in a user config.
I see you already added this in f62d874 and pushed a new version for the previous - glad to see you respond so quickly to feedback. Keep up the good work.😃 |
Thanks! I also added the SD Card for that card reader and one I had - it's a useful one I think. There are many however but the example should allow others to provide a config for their particular one. It made me think perhaps a device name pattern match type could be added to the If you have any other ideas for useful defaults let me know. I don't want to add too many specific ones, since the icon lookup is run against each device but they are useful for quickly checking what is attached. |
I agree.
How laborious would be writing a test to see the performance impact of this kind of matching compared to a huge icon enum be? If this can somewhat easily be benchmarked it might turn into a future feature. But you are right - the icon lookup shouldn't impair the core functionality.
I will gladly do that. |
I mocked up an implementation of the pattern match icon yesterday: #22 - will do some performance testing and decide whether to merge it or not. |
I think Nerd Fonts changed a couple of symbols.
Unfortunately I don't know Rust or have the tool-chain installed to test it myself and make a PR.
cyme/src/display.rs
Line 1637 in acd9ffa
f06a6
cyme/src/display.rs
Line 1638 in acd9ffa
f0155
cyme/src/icon.rs
Line 241 in acd9ffa
f0372
cyme/src/icon.rs
Line 248 in acd9ffa
f037d
cyme/src/icon.rs
Line 264 in acd9ffa
f0306
cyme/src/icon.rs
Lines 268 to 269 in acd9ffa
f0379
PS: I can't find out by the VID/PID what kind of sandisk device it is but if it is a ext. disk maybe f0a0 is better suited.
cyme/src/icon.rs
Lines 276 to 277 in acd9ffa
f0306
cyme/src/icon.rs
Line 279 in acd9ffa
f0841
cyme/src/icon.rs
Line 287 in acd9ffa
f030c
The text was updated successfully, but these errors were encountered: