hyprwm / hyprland-wiki

The Hyprland Wiki Pages, automatically synced with the website.
BSD 3-Clause "New" or "Revised" License
238 stars 336 forks source link

Enable web browser search engine integration #762

Open max-ishere opened 2 weeks ago

max-ishere commented 2 weeks ago

As an example search.nixos.org has search engine integration with firefox. I can add the website as a search engine (even 2, 1 package and 1 for options, but its its same domain) and then I can search what I need in the search bar of my browser. Can this be enabled on hyprwiki.

If there's some manual way to do it, I'd rather not do it by hand.

vaxerski commented 2 weeks ago

I don't think this is a good idea, many search engines index old pages

fufexan commented 2 weeks ago

I don't think this is supported by Hextra (the theme the wiki uses).

max-ishere commented 2 weeks ago

I don't think this is a good idea, many search engines index old pages

I was talking about this thing in the search bar for firefox (this is the URL bar):

image

I simply expect it to work in my browser.

I don't think this is supported by Hextra (the theme the wiki uses).

Yeah ig, it may not. But please at some point look into this.

alexandru0-dev commented 1 week ago

@max-ishere If i got it correctly basically you basically want to have a ?search=query parameter that can be used as browser search integration

I simply expect it to work in my browser. It's not server side search, so I would be surprised if it was the opposite.

You can't really "search", the only possible think is it's more like a "open a page and the search bar is populated and in focus" as it's client side search and if this doesn't work for you, I personally think you should just abandon the idea.

Said so, I don't think Hextra theme support it yet, so I suggest to create an issue on the Hextra repo and if it's just something that lacks configuration from hyprland side, you can report it here.

Also, out of curiosity, how often do you need to use the wiki for needing this??

max-ishere commented 1 week ago

Not often enough, to be a critical issue, but it's just a habit at this point