I am looking for a way to select some content copy it to a clipboard then perform an exact search in one search engine which means I need to add quotes.
Feels like, whatever I try the url format is not the right one.
Ah, yes, if an exact phrase search is what @politicus wants – i.e. for the quotes to surround the search term, rather than them perhaps being in the example as part of an attempt to get the URL to work at all.
@politicus -- It does look like what you did should work. Similar patterns do in other actions:
And the "Open URL" action can use text tokens as long as they evaluate to a "URL safe" string -- so this is OK if the Clipboard is Hello or Hello%20World, but fails for Hello World:
But it all goes pants as soon as you include the double-quote:
...and my guess is that is because the "s are URL encoded to %22:
You can get around that by doing your own encoding (remembering that you need to escape the % to get a literal):
...which works fine so long as the contents of the Clipboard are a valid URL parameter string (so, again Hello or Hello%20World work, but Hello World fails).
But since a) this is looking really clumsy, and b) for safety's sake you'll want to to URL encode your search term anyway -- much easy include the double-quotes at the encoding stage then include the whole as an unquoted variable.
Most of the above is supposition -- it's inferred from testing and is not down to any knowledge of KM's code! -- so take the details with a large pinch of salt. Just be aware that this sort of thing can happen and that there's usually a way round it.