mkdocs-material icon indicating copy to clipboard operation
mkdocs-material copied to clipboard

Allow selecting "icons" or "emojis" in the "Icons, Emojis" search box

Open iBug opened this issue 1 year ago • 1 comments
trafficstars

Context

No response

Description

On Icons, Emojis, add two checkboxes to allow users to select if they want icons to show up in search results, or emojis, or both.

Related links

Use Cases

When I head over to that page, I pretty much always want icons (bundled SVGs) and not emojis. Emojis coming up in the results only slow down my search. It would be nice if I can filter out just icons, and for those who only look for emojis.

Visuals

No response

Before submitting

iBug avatar Jan 09 '24 07:01 iBug

Thanks for suggesting. We're likely going to integrate emoji and icon search directly into the new search as a further data source, so this will be tackled once we got a stable working version of the new search. As a temporary mitigation, if you know what iconset you want to use you can prefix your search with material, octicons, simple or fontawesome:

Bildschirm­foto 2024-01-09 um 17 45 25

squidfunk avatar Jan 09 '24 10:01 squidfunk

I've added a select field to narrow the search to icons or emojis in https://github.com/squidfunk/mkdocs-material/commit/aef6175f04244870e7c356d00a48a19e0cde90db. It's already live:

https://github.com/squidfunk/mkdocs-material/assets/932156/7aed7eb1-aaa9-41f8-b36d-8f4dc96521e5

It's not a perfect solution, it's more like a bandaid, as we're thinking of moving the icon and emoji search into the search box anyways, given that we're currently revising the search implementation (https://github.com/squidfunk/mkdocs-material/issues/6307). In the meantime, this should do.

squidfunk avatar May 03 '24 17:05 squidfunk