- Edited
What: Add a search operator (I suggest @
) which can be used with established !
shortcuts to instead initiate a site:
search on the relevant domain.
Example:
- User searches for
testing @w
- Kagi sees that
!w
redirects to a page atwikipedia.org
- Kagi displays results for
testing site:wikipedia.org
Why: Kagi is better than most websites’ own search engines, so I often want to use Kagi to search a site rather than using a bang operator. Typing out the full site:
operator takes a long time, and this would be much quicker!
Implementation:
- This could be handled in the same way as bangs and custom search shortcuts are (i.e. it redirects to a Kagi URL containing “site:example.com”, and that’s what the user sees in the search field of the results page). This means that the user can edit the domain if necessary (e.g. specifying a subdomain or subdirectory), and might make it somewhat simpler to implement, as well.
- I can see arguments for either including subdomains or only the second-level domain and TLD — for example,
!w
actually points to a page aten.wikipedia.org
; should@w
point there or towikipedia.org
? I would suggest the latter, but I would be happy with either implementation, and it might be more useful to include subdomains. Opinions welcome below. - [edited to add:] Like bangs, custom search shortcuts should take precedence, and
@
should use the domain specified by the user if a custom shortcut exists for the string.