If you don't mind an alternative solution, what you mentioned looks a lot like custom search engines on Chrome.
And this is something I did using custom search engines.
Using Omnibox and the multiple search engines provided by Chrome, you can add, for example a custom one for the ArchWiki (If it wasn't added automatically), just like the one in the picture below, with a nice and short keyword. In my case
So now, each time I want to search something on the ArchWiki, I just go to the omnibox, type aw and then hit tab (or space) and the custom search engine switches temporarily to ArchWiki, allowing me to quickly search directly there and even takes me to the appropriate page if the term is accurate enough.
// If you are wondering how the custom ArchWiki ended up in the top box, it's because I accidentally made it the default search engine.