"TIP: Using Drafts as a Text Snippet Library - Tips & Tricks - Drafts Community" - forums.getdrafts.com

Updated 10212022-202547


agiletortoise | 2022-10-21 21:36:09 UTC | #1

In this article, we are going to step through the setup of a series of tools that allow you to use Drafts as a repository of reusable text snippets. Whether it’s canned responses you use in email or fun emoticons for social media, Drafts can be a great place to maintain and access text snippets.

In the process, we’ll touch on how to use a number of Drafts’ features together to create complete workflows. Even if you are not sure you need a snippet repository, you might pick up a few things about workspaces, actions, and other Drafts tools that you can use in other applications.

And, of course, like anything Drafts, there are plenty of places you customize these ideas to your needs.

Overview of the Snippet Setup

In this article, we are going to:

Creating and Managing Snippets

Creating Basic Snippets

snippets-01|690x274
snippets-01|690x274

Snippets will just be drafts. To create a snippet for our snippet library, do the following:

Creating Advanced Snippets

snippets-02|690x274
snippets-02|690x274

Although many of your snippets might just be static text, the tools we will use to insert snippets also evaluate Drafts’ template tags when fetching the snippet, so you can dynamically insert information.

The most common use would be to insert formatted date/time information. Say you have a snippet you use for a meeting notes template, and when you use the snippet, you would like today’s date inserted.

Getting into the details of template tags is beyond the scope of this article, but if you have uses for this option, see the Using Drafts Templates article for more information.

Creating a Snippet Workspace

Next, we are going to set up a “Snippets” workspace. Workspaces are a way to apply filters and settings to the draft list. Our “Snippets” workspace is going to show us only our snippet library to make it easy to edit and update all our snippets.

If you want to skip a few steps here, you can install the “Snippets” workspace from the Directory.

snippets-03|690x274
snippets-03|690x274

To create our workspace:

Now that we have our workspace return to the draft list and apply the workspace by selecting it from the workspace menu. You should see just the snippets we created above, with the “snippet” tag assigned. Anytime you need to modify existing snippets, you can go to this library.

Using Snippets

Snippet Actions

Install the Snippets action group from the Directory:

This group contains the following actions:

TIP: Try the “Copy Snippet” action in a Drafts Grid Widget on your Home Screen or Lock Screen.

Snippet Shortcut

snippets-04|690x274
snippets-04|690x274

You might now wish to make your snippets more easily accessible from outside Drafts. Apple’s Shortcuts is a great way to integrate your snippet library.

The above works great on Mac if you enable it to show in the "Pin in Menu Bar" option, so it appears in your shortcut list in the main menu and can be accessed from anywhere quickly.

On iOS, you can add this shortcut to your Home Screen.

Conclusion

There are many ways this example could be elaborated on or modified for specific needs. Consider it a starting point. Hope this helps some understand how some of the pieces of Drafts can fit together as complete workflows!


agiletortoise | 2022-10-21 21:29:17 UTC | #6