-
Notifications
You must be signed in to change notification settings - Fork 6
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
Suggest replacement for F719 #9
Comments
At the moment I have no list of renamed icons. But in principle it should be possible to create such a list; starting with 'seems to be dropped' icons and searching for (almost) identical images in the new |
These are the 'seems to be dropped' icons (where the is no 1:1 equivalent name in the new icons): $ cat ~/git/nerd-fonts/glyphnames.json | \
jq | \
grep '^ "' | \
sed 's/^ "//;s/".*//' | \
grep '^md' | \
sed 's/^mdi-/MDI /;s/^md-/MD /' | \
sort -k2 | \
grep -B 1 MDI | \
uniq -c -s 4 | \
grep '1 MDI' | \
sed 's/.* MDI //' | \
xclip Full list hidden here:
Oh, I used a 'special' diff --git a/bin/scripts/generate-css.sh b/bin/scripts/generate-css.sh
index 014a0ce0f..468ad3572 100755
--- a/bin/scripts/generate-css.sh
+++ b/bin/scripts/generate-css.sh
@@ -102,6 +102,10 @@ for var in "${!i@}"; do
} >> "$output_json_file"
else
+ # generate json entry
+ {
+ printf ",\"%s\":{\"char\":\"%s\",\"code\":\"%s\"}" "$glyph_name" "$glyph_char" "$glyph_code"
+ } >> "$output_json_file"
# generate css min rules for removed glyphs
{
printf ".nfold-%s:before{content:\"\\%s\"}" "$glyph_name" "$glyph_code" |
It would be my pleasure, thank you very much!
Currently this can be done with
This is definitely useful, as it gives |
Solution based on MaterialDesign's own replacements database
Result
Helper[1] Command line to create cat git/nerd-fonts/glyphnames.json | \
jq | \
grep '^ "' | \
sed 's/^ "//;s/".*//' | \
grep '^md' | \
sed 's/^mdi-/MDI /;s/^md-/MD /' | \
sort -k2 | \
grep -B 1 MDI | \
uniq -c -s 4 | \
grep '1 MDI' | \
sed 's/.* MDI //' | \
tr '_' '-' > missing [2] Command line to create substitution list while read icon; do
rep=$(jq ".[] | select(.aliases[] | select(. == \"${icon}\")) | .name" -r git/MaterialDesign/meta.json)
if [ -n "${rep}" ]; then
xargs echo "+ ${icon} =>" <<<${rep}
else
echo "- ${icon}"
fi
done <<< $(cat missing) | \
LC_ALL=C sort > replacements |
First of all I want to say thank you for this great tool! 🥇
This really helps Nerd Fonts to help others with the painful transition to the new codepoints.
I would add you as contributor to Nerd Font, if you agree.
On this Issue topic:
Via Gitter I just had the question where
F719
is. This is whatnerdfix
says:The direct replacement for
F719 (file_document_box)
isF021A (text_box)
.(They renamed the icon.)
I do not know if
nerdfix
has the possibility to handle pairs that have not-similar names, so maybe this is not possible.The text was updated successfully, but these errors were encountered: