kagisearch / bangs

Repository of bangs used by Kagi Search
https://kagi.com
MIT License
147 stars 52 forks source link

Draft: more consistent wikipedia bangs #75

Closed LucasOe closed 4 months ago

LucasOe commented 5 months ago

This PR is a draft and is unlikely to be final, as some of these changes may require further discussion. The PR aims to make the existing wikipedia bangs more consistent by using w[country code] as a trigger and changing the site name. It also adds missing wikipedias with more than 30 active users, according to this list. The following wikipedias are not included due to conflicts with existing triggers:

Some of the issues that I would like to discuss:

nobodywasishere commented 5 months ago
LucasOe commented 5 months ago

What bangs are each of these conflicting with?

Regarding aliases:

nobodywasishere commented 5 months ago

We can add these missing wikipedia bangs as users request them, at least until more stats are in place.

Should I still add wge as an alias for Germany, or should we maybe add the ISO 3166 country codes as an alias for their respective country?

"wde" exists and should work. I'm fine using "wge" for it's respective ISO country.

Four countries had ...

The intention is to eventually remove these aliases once more stats are in place. For now, you can leave just the original triggers as-is, no need to add them to the rest.

Some country used non-latin spelling, or the translation of "wikipedia" as an alias.

You can leave these bangs as-is, we may change them in the future pending user feedback.

Should I add the mobile version for all wikipedias, too?

IIRC wikipedia will automatically redirect to the mobile version of the site if you're on a mobile device, what we have now should be fine.

LucasOe commented 4 months ago

Thanks for merging, but I haven't gotten around to adding back the original aliases yet. Feel free to add them yourself, or add them on a per-demand basis if users ask for them.