Drafts Action Directory

Groceries

Posted by James Hartshorn, Last update 13 days ago

Add a list of items to the Grocery app.

Install

Steps

  • script

    // define regex to use...
    const findRegex = /\n/g;
    // define replacement expression...
    const replaceWith = ", ";
    
    // do the replacement...
    draft.content = draft.content.replace(findRegex, replaceWith);
    draft.update();
  • url

    template
    grocery://add?items=[[draft]]
    useSafari
    false
    encodeTags
    true

Options

  • After Success Archive
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.