Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

chore: add script to generate nerd-fonts v3 icon list #21

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

Snxwman
Copy link
Contributor

@Snxwman Snxwman commented Jan 2, 2024

I've written a bash script that extracts all the nerd-fonts icons and names from the nerd-fonts repo and generates a lua file that contains the icon list. This generated file is the same as the previous nf-v3-icon-list.lua, just with the updated names and icons.

I've done my best to comment the script so it is overly clear what the script does.

This script will allow you to regenerate the nf-v3-icon-list.lua file every time nerd-fonts releases a new version that adds or changes icons.

The script is a bit slow (takes about 35 seconds on my desktop) due to how many icons there are (currently about 9200), but only needs to be run once each time nerd-fonts updates their version. It could probably be made faster, but for how infrequently it needs to be run, I don't think it matters much.

@ziontee113 ziontee113 merged commit 13320f9 into ziontee113:master Jan 3, 2024
@ziontee113
Copy link
Owner

Thank you so much @Snxwman for the PR. Since the script is very descriptive it'd be a breeze in the future to adapt to new Nerd Fonts versions. Thank you 👍

@Snxwman Snxwman deleted the gen-nf-v3-icon-list branch January 5, 2024 14:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants