Search Links on a Webpage by Keyword in User Prompt

First, let me express my upmost appreciation for providing an excellent statement (video) of your requirements. Well done, sir. :+1:

This can definitely be done in KM. It is not hard, but will take a bit of work.

So first, I'll share my ideas of how you might do this. Then we can see how it might be implemented.

Workflow Idea

  1. Use JavaScript in Browser to extract all links (URL and text) from your web site.
  2. Use this data in this great macro system MACRO: Spotlight Search Prompt by @DanThomas.
    • That macro will allow you to type and incrementally search for the text of your links.
    • Having found one just press RETURN to use it
    • Or have buttons (with shortcuts) to specifiy the type of output (rich text link, MD text, or use URL text)
  3. Setup a KM Switch or Case action based on front app name (or some other criteria) to determine the link type to paste.

How does that sound?

1 Like