arnemart / SafariKeywordSearch

A keyword search extension for Safari
Mozilla Public License 2.0
121 stars 6 forks source link

Google searches doesn't work with default search, prefix searches with 'g' #45

Open allard opened 7 months ago

allard commented 7 months ago

I'm trying to use Kagi as my default search engine. The Kagi extension doesn't work well for me because it overrides SafariKeywordSearch. I have Google as my default search engine in Safari. I entered Kagi into SafariKeywordSearch and set it as the default search in SafariKeywordSearch. Kagi search works great this way as will everything else, except Google.

The first problem is that clicking on a link in Google will open that link in Kagi, which is not what I want, or I think expected. I think this is related to Safari removing the google url from the url bar and that triggers the SafariKeywordSearch default (Kagi in my case). I managed to get around this issue by disabling SafariKeywordSearch on google.com in Safari extensions, but that really feels like a workaround.

When I removed SafariKeywordSearch from google.com I ended up with the next issue and that was that my keyword 'g' was prefixed with the google search - searching for 'test' would end up as 'g test'.

Thanks for looking into this.