Search Shortcuts PRO

Search Shortcuts let you type a trigger word followed by a query in Safari's address bar and jump straight to a site's search results — for example, typing gh hello world can take you to GitHub's search for "hello world".

This feature requires Scripting PRO.


How It Works

When you search from Safari's address bar, Scripting looks at the first word of your query. If it matches a shortcut's trigger, the rest of the query is sent to that shortcut's search URL instead of your default search engine.

  • The first word is the trigger.
  • Everything after it becomes the search query.
  • The query is URL-encoded and substituted into the shortcut's URL where you put %s.

It works with Safari's address-bar search on common search engines (Google, Bing, DuckDuckGo, Yahoo, Baidu, Ecosia, Startpage). Make sure your query starts with the trigger word.


Add a Shortcut

In the Safari Browser Scripts settings, open Search Shortcuts and tap Add:

  • Trigger — a single word with no spaces, e.g. gh.
  • Name — an optional label for the list.
  • Search URL — the destination, with %s where the query should go.

Each shortcut has an Enabled switch. Tap a row to edit it, or swipe to delete.


Examples

TriggerSearch URL
ghhttps://github.com/search?q=%s
ythttps://www.youtube.com/results?search_query=%s
npmhttps://www.npmjs.com/search?q=%s
whttps://en.wikipedia.org/w/index.php?search=%s

With the gh shortcut above, searching gh swiftui opens https://github.com/search?q=swiftui.

The destination does not have to be a web search. A custom app URL scheme or a Universal Link also works, so a shortcut can open another app's search directly.


Notes

  • Shortcuts are matched only when the first word equals a trigger. A normal query that does not start with a trigger passes through to your default search engine unchanged.
  • Changes you make in the settings take effect on your next search.