ryanoasis/nerd-fonts

site(cheat-sheet): unique URLs for each glyph

Closed this issue · 2 comments

Requirements

  • I have searched the issues for my request and found nothing related or helpful
  • I have checked the FAQ for help
  • I have reviewed the Wiki for relevant information

Problem Description

I am writing some documentation about a library that is assigning Linux distributions to their equivalent NerfFont icon. To illustrate my choice of icons and make it clear that the codepoint corresponds to the right glyph, I would like to have an URL in which I can point to that glyph.

Desired Solution

Ideally, I would like to have a unique URL for each glyph.

Something like:

  • https://www.nerdfonts.com/cheat-sheet/nf-linux-nobara
  • https://www.nerdfonts.com/cheat-sheet/f380

Alternatives Considered

I tried to hack my way by referencing in the URL the search box form's id, like: https://www.nerdfonts.com/cheat-sheet?glyphSearch=nf-linux-nobara.

But of course it doesn't work and the search box is not magically populated with the nf-linux-nobara text.

Additional Context

No response

This is already implemented.

Please read the commit message of this commit: 4fde75a
There is even an example.

I know this is under-documented. Any idea where to put that information?

image

In the cheat sheet search box (and thus also with the q= parameter) you can also specify the codepoint (in hex) directly.

i.e. https://www.nerdfonts.com/cheat-sheet?q=f380