Download the Shortcut file here:
Do you ever wish you could easily add items to a Coda table from anywhere on your Mac? Look no further! We’ll harness the power of Mac Shortcuts to do just that!
How it Works
The Mac shortcut allows you to copy something to your clipboard, highlight text in any application on your Mac that supports the , and send both the clipboard item and the highlighted text to a Coda table. My original idea was to be able to copy the link back to a Slack thread, while sending the text from slack to my table, ultimately for something that I should add to my weekly todo list. I did not want to add items directly to my todo list without reviewing them first, so this document is set up with that approach in mind. Setup
Copy this doc if you haven’t already Download the “Send to Coda.shortcut” file, linked in the callout above. In your own copy of this document, open up the Doc Automations from the Doc Settings menu. You’ll see a rule there called “Inbound Items” and it should be toggled off. Select this rule and expand the “Step 1 When” section. Copy the URL for the webhook. We’ll come back for the token after we add the webhook to the shortcut. Enable the automation in your Coda doc Double click the “Send to Coda.shortcut” file to open it in Mac Shortcuts.app Edit the last step:
Add your webhook, making sure it looks like a URL without the “< >” angle brackets. Go back to your automation in the Coda doc and click the “Create API Token” button Go back to Mac Shortcuts to continue editing your Shortcut. Edit the last step:
Add your API token, making sure it looks like “Bearer 1234” without the “< >” angle brackets.
Optional: set a Keyboard Shortcut. If you opt into this, you may need to remap other shortcuts for , or add this as a universal shortcut if it does not work in all apps. I use command E
Testing
Now that you have everything set up and ready to go, let’s test it out! I originally built this with Slack in mind for my own workflow, so let’s start there:
Navigate to a Slack message you want to add to your todo list. It could be an actual todo item, or something interesting you need to read/think about and circle back on later. Select the kabob menu in Slack and choose “Copy link”
Names and faces have been redacted to protect the innocent!
Now, select the text of the message you just copied the link for (I’ll be adding this message to my joke repository 😁)
Activate your shortcut, either by using your Keyboard Shortcut or right-clicking the highlighted text, choosing “Services” from the contextual menu and choosing “Send to Coda” from the submenu. Navigate back to your copy of this Coda doc to . You’ll see your item in the “Tasks to Triage” table. You can send it to your “Todo List” table by clicking the button. Or, if you have decided you no longer need to do the item, you can delete the row.