Created
July 11, 2025 18:51
-
-
Save zspotter/9e38a4dc61d82f92e3955046aafe2db6 to your computer and use it in GitHub Desktop.
TUI for rendering, searching, and copying nerdfont icons. (requires jq and fzf)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
glyph_list() { | |
curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \ | |
| jq -r '.METADATA as $m | del(.METADATA) | to_entries | sort_by(.key) | .[] | "\(.value.char)\t\(.key)"' | |
} | |
pbcopy_picker() { | |
fzf \ | |
--reverse \ | |
--delimiter=$'\t' \ | |
--header="(enter to copy)" \ | |
--bind "enter:execute(echo -n {1} | pbcopy)" | |
} | |
glyph_list | pbcopy_picker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment