cheatsheet
cheatsheet copied to clipboard
Adding query param support for custom search engines in browsers
Resolves https://github.com/tailwindcomponents/cheatsheet/issues/50#issue-2158983583
Lots of browsers support Custom Search Engines. This change would allow me to type "tw" -> hit tab -> and type in a search term, and then I could open the tailwind cheatsheet to the specific query I'm thinking of. It'd be a huge ergonomic win!
I know that my implementation of this change isn't up to today's standards, but I didn't want to go through upgrading all of the packages to unlock useSearchParams from react-router-dom (I tried and found a few other dependencies on history that made this upgrade a larger swing than I wanted to take on.)
I don't feel strongly about the tool versions or yarn lock changes if you want to toss them
@khatabwedaa any chance you could take a look?