Browse the docs

You select text on a page

Runs the macro when you select text on a page and stop for a moment.

You select text on a page

Details #

Fires after the selection has stayed the same for 400 ms. minLength ignores short selections. The run starts with the page's inputs plus text and html of the selection. {{triggerValue}} is the text.

Parameters #

ParameterTypeRequiredValuesWhat it does
matchrecordbrowser title urlWhich pages. url is a pattern (https://*.github.com/*/pull/*), a plain start (github.com/apple) or /regex/; title is text (any case) or /regex/; browser is safari, chrome or any.
minLengthnumberFewest characters. Default 1.

Every trigger also takes Limits: a cooldown, the first time each day, every nth time, twice within seconds, a chance, only while you are at the Mac, on one Mac, or in a State. See Limits on any trigger.

Examples #

Look up a selected word
When
  1. You select text on a page on * (at least 3 characters)
Do
  1. Show “{{text}}” for 2 s
Open in Switchboard to try it

Gotchas #

  • A long selection arrives cut at 200 KB of HTML.