Quicklinks - Search websites

I’ve used Alfred before and recently switched to Raycast – both have this super handy feature where you can set up custom shortcuts for searching specific websites directly.

For example, I have shortcuts like:
yt => https://www.youtube.com/results?search_query={query}
track => https://parcelsapp.com/en/tracking/{query}
az => https://www.amazon.pl/s?k={query}

It would be awesome if BTT offered such functionality!

You can probably do that with BTT. Could you describe exactly how you'd like the UI / process? Then I can post an example setup.

  1. I configure all my quicklinks with the {query} pattern
  2. When I trigger a specific shortcut, e.g. CMD+OPT+SPACE a window with a list of quicklinks will appear with a textbox above (UI of the BTT Clipboard Manager might work too)
  3. Typing into the search box would select the first matching quicklink.
  4. Pressing TAB would make the quicklink active
  5. Now I can type the search phrase
  6. Pressing ENTER would open the website replacing my {query} within the URL with my typed search phrase.

It's important to add that quicklinks can also support system-specific protocols, e.g. tel://{query} which triggers a phone call.

That's how this currently looks like in Raycast:



here is a simple example to search google / amazon via opt+cmd+space

search.bttpreset (86.5 KB)

Looks very good, thanks!

It would be even better though if the 4th and 5th points worked, currently there's no way of searching for a specific quicklink, e.g. Amazon.

The problem is that the same input is used to search for quicklinks and to use as an query input.

Here's an example:

  1. I type "ama" and press TAB
  2. The amazon quicklink is selected and the text input clears itself
  3. I type my search query into the box and press enter which opens the URL

This is currently hard to achieve but will become possible very soon once the input based list generation feature is finished!
I'll post an update here once it is possible.

1 Like

That's awesome news! :heart:

while 4.855 alpha doesn't yet add the dynamic list generation based on input text, it adds a new option:
"Use First Word To Filter & Save Rest Of Input To Variable BTTPromptInput"

While this doesn't clear the box, typing "google BetterTouchTool" would now filter the list for "google" and pass "BetterTouchTool to the action

1 Like

Thank you! It works perfectly! :slight_smile:

However, after some testing, I noticed that every three uses or so, the query sometimes ends up empty, resulting in a URL like this:
https://www.youtube.com/results?search_query=

Hi @Andreas_Hegenberg

It seems that the BTTPromptInput variable no longer populates when the option Use First Word To Filter & Save Rest Of Input To Variable BTTPromptInput is selected.

Is this a known bug?

@rafenden which version are you on currently?

I’m on 5.640 and macOS Tahoe 26.0.

Edit: Just updated the app to 5.649 and the issues still exists.

thanks, I’ll check!

1 Like

@rafenden I tried to reproduce, but it seems to work fine here:

How are you using the variable? If possible maybe share some example setup that I can try.

Here’s my preset.

exported_triggers.bttpreset (172.1 KB)

Update:

Found the issue, I had to replace BTTPromptInput with BTTInputPrompt and it worked.

Not sure why the BTTPromptInput variable isn’t being replaced in the URL.

  1. If a floating menu is assigned it disappears as soon as the mouse is moved.
  2. Seems like once a floating menu is assigned to this action it(FM) can't be cleared.

macOS: Sequoia (15.6.1)
BetterTouchTool: 5.666

@StanN is this the correct thread? I don't understand what you are responding to

@Andreas_Hegenberg I respond regarding the action: Show / Choose From List (Configurable). If it needs a new/seperate topic, plse split from here.