Drafts 28 Released - Ready for new iOS/macOS, Folder Bookmarks, and More

Drafts 28.0 has been released:

Details below. For a complete history of updates, visit:

What’s New

Ready for iOS 15 and macOS 12

r28

Drafts is ready for iOS 15 and macOS 12! Updated for compatibility, of course, but also to take advantage of some of the great new features. New details below, but Drafts works great with “Live Text” to capture text from images, has full support for Shortcuts on the Mac, and brings great new iPad features, like powerful external keyboard menus.

New Apple Watch App

r28-2

We have re-written the Drafts Apple Watch app from the ground up to use the latest watchOS technologies. It’s still the best, easiest way to capture ideas on the go, but has a few new tricks:

  • Multiple complication types to capture, capture with options, or see your inbox or flagged draft count.
  • Inbox drafts synced to watch now reflect your default workspace options on the phone.
  • Flagged drafts now also synced to the watch.
  • Requires watchOS 7.1 or greater.

Learn More About Drafts on Apple Watch →

Shortcuts Support on macOS 12

We’re ready for Shortcuts on the Mac! It’s just not quite ready for us. Look for full, cross-platform support for all of Drafts’ Shortcuts actions when macOS 12 (Monterey) is released in the coming weeks!

We’re ready for Shortcuts on the Mac! It’s just not quite ready for us. Look for full, cross-platform support for all of Drafts’ Shortcuts actions when macOS 12 (Monterey) is released in the coming weeks!

In the meantime, enjoy these new shortcut actions on iOS:

  • Get Current Draft: Retrieves the draft object for the draft currently open in the editor.
  • Open Draft Enhancements: The “Open Draft” shortcut action now has a bunch of additional optional parameters to configure Drafts while opening - to load a workspace, actions groups, hide/show the drafts and action lists, etc. Great for bookmarking a specific set of options in a Shortcut.
    Learn More About Shortcuts →

Folder Bookmarks

Up to now, Drafts file actions and scripts have been limited to working with files in the “Drafts” folder in iCloud Drive (or by working directly with cloud-provider APIs, like Dropbox and Google Drive). With folder bookmarks, it is now possible to grant permissions to additional folders outside the Drafts App Sandbox, making it easier to integrate with other apps and services, to, say, export a draft content to another system - like an Obsidian Vault, etc.

Learn More About Bookmarks →

Document Scanning and Live Text Support

Drafts has been tested and works great with the new “Live Text” features in iOS 15 and macOS 12. In addition, we have incorporated document scanning to OCR directly in the iOS app. Tap and hold the “+” and select “Scan Document” to open the document scanning camera. It supports scanning multi-page documents, and directly runs the results through OCR to create a new draft with the result text.

Learn More About Live Text & Scanning →

Share Extension and Capture Window Updates

Drafts capture flow used in the iOS Share extension and the “Capture” window on Mac, has received a number of updates:

  • Both now remember your recently used selections for appending and prepending to existing drafts, to make it easier to re-use active drafts.
  • The Mac Share extension now displays in a new capture window, allow preview/editing of captured text as well as appending-prepending to other drafts - more like the iOS Share extension.
  • Mac Services menu now contains “Capture to Drafts” and “Capture to Drafts with Options” services to send text selections to Drafts from anywhere in the system. The “with Options” version displays a capture window, while the other version capture silently as a new draft.
  • New /capture URL scheme, and Shortcut “Show Capture” action, allow you display the capture window in app, optionally pre-filled with text and tags. This is useful in capture workflows from other apps, as well as web bookmarklets.

Learn more about the iOS Share Extension and Mac Capture Window

General Improvements

  • New tag suggestion interface on iOS to make it easier to tag your drafts with just the right tags.
  • On iOS, long press on links to other drafts now generates a preview and several command options for the draft. This includes [[wiki-style]] links, or drafts://open links in link mode.
  • On Mac, command-click on links to other drafts to open them in a new window.
  • Tags in the tag filter pane now have contextual menu (tap and hold) with “rename” and “delete” commands to bulk manage tags. These options already existed in the draft list “Operations” commands, but these versions pre-fill the tag value for better accuracy.

Other Updates and Fixes

All Platforms

  • New “What’s New” screen accessible via Settings > What’s New (iOS) or Help > What’s New (macOS)
  • “Run Shortcut” action step has new “Return to Drafts” option. If disabled, Drafts will not include callback parameters to return to Drafts after completing the Shortcut. If you do not care about a result from Shortcuts, and wish to end up in a different app when the shortcut finishes, disable this option.
  • [[hashtags]] template tag. Returns assigned tags as comma-separated list, with each tag prefixed with a “#”. Convenience tag to remove the need to script this conversion when exporting to systems that use hash tags.
  • Estimated read time now calculated and displayed in draft detail (i) screen.
  • Fix: Markdown syntaxes not recognizing [ref][links] with space.
  • Fix: After success “Trash” would not load next draft properly in focus mode.

iOS

  • Refactor the next-previous button logic because it was not updating properly in some cases.
  • A few new app icon options.
  • Require iOS 14.1 or greater.
  • Remove pre-iOS 14 “Today” widgets.

Mac

  • More toolbar options to customize your toolbar. Focus, link modes, preview, arrange buttons now available.
  • List types returned from AppleScript not converted properly to JavaScript arrays.

Scripting, Shortcuts, and URL Schemes

  • version.delete() function to allow scripted deletion of versions in the version history. (docs)
  • ActionLog script object used to read and manipulation entries in the Action Log. Generally accessed from the draft.actionLogs property. (docs)
  • /scandocument URL scheme. (docs)
  • editor.scanDocument() -> string function. Also similar to editor.dictate() function, opens the document scanner and returns any OCR results as a string which you can do with as you please. (docs)
  • New “Get Current Draft” shortcut action retreives the draft currently open in the main editor.
  • “Open Draft” shortcut action has additional options to configure state of window (show/hide side panes, load workspace, etc. - docs)
  • /open and /create URL schemes now support several additional parameters to configure the environment (docs):
    • showDraftList [true/false]
    • showActionList [true/false]
    • loadWorkspace, loadActionGroup, loadActionBarGroup: take names of valid group/workspaces and applies them
6 Likes

great, thanks so much! Now I can finally ditch my over-complicated workaround of calling an action via URL Scheme which sets all those :slight_smile:

Can’t wait for iOS 15 to play around with Shortcuts.

1 Like

I just spent 5 minutes wondering why my links won’t open via cmd + click before I realized it’s only Drafts wikilinks :sweat_smile:

Please implement cmd + click to open a link for all types of links, would be really useful (and also in line with the behavior of other markdown apps) :pray:

1 Like

Example? This behavior is for links to other drafts, and should work with either [[wiki-style]] links, and drafts://open?... style URLs (when activated in link mode).

Non-drafts links (e.g. http) already open in browser.

Oh sorry, that wasn’t phrased very clearly by me. I was meant this feature request I made from a while back to open links in normal mode (i.e. not link mode) by using cmd + click.

My wish above was basically only a re-iteration of that feature request.

So I originally thought it was a problem with my Search Actions action but actually it would appear that it’s actually the bluetooth keyboard command ⌘ + / is no longer functioning with the update.

I can do a formal ticket if you’d like.

Drafts Version: 28.0.40
OS Version: iOS 15.0
Device: iPhone 12 Pro Max
Pro Licensed: Yes

Thanks for this update - the Folder Bookmark function in particular should solve something I’ve been trying to do neatly for a while - export to Obsidian. But, I’m getting an error on my Mac with the Bookmark. I’m using the name of the bookmark (but have tried the folder path as well) and I’m getting an error:

Script Error: TypeError: Argument does not match Objective-C Class

I’m using code like:


fmBookmark = FileManager.createForBookmark("Obsidian")

I’ve got it to work with the File action step - but for some reason, I always like to do these things through scripts.

I’m on the latest public beta of Monterey if that makes a difference.

I think there was a misleading example in the FileManager docs, I’ve fixed that. The function takes a Bookmark object. Like:

// find or create a named Bookmark
let bookmark = Bookmark.findOrCreate("My-Folder");
let fm = FileManager.createForBookmark(bookmark);

What are you expecting ⌘-/ to do? Don’t believe that is a keyboard shortcut Drafts defines. Did you have it attached to an action?

1 Like

Yup! I had it attached to the TAD-Search Actions action, but I can’t seem to get it to respond at all (attaching it to other actions to test,) along with a few others I’ve discovered in the past few hours:

  • ^ + -
  • Option + /

Getting fairly worried - I sent you, Tim, and Snell a Tweet reply thread about this - because I suspect it’s not your error but an omission of the iPhone from whatever’s changed with “Universal Keyboard Support” (ironically, given that title.)

I’m not sure what you are seeing, are you on iOS 14 or iOS 15 beta? I only tested on the 15 beta, but can successfully bind Drafts actions to those shortcuts and they work from a bluetooth keyboard connected to an iPhone.

1 Like

You’re correct! I’m running the Release Candidate of 15 on a Dev profile, but was able to get the shortcuts to respond again after restarting my handset. Sorry about that…

Though on the subject, since iPhone users do not have the benefit of the keyboard shortcut guide/panel that appears when holding on iPad, is there any way you could publish the contents of that panel for Drafts in a table format?

I will literally make it for you if you send me screenshots.

For action assignments there are some Thoughtasylum library actions that export them in slightly different list formats into new drafts.

2 Likes

The built-in commands are really only what is in the File/Edit/View menus (see below).

The rest belong to actions and depend on what you have installed/configured. Were you aware that you can enable display of keyboard shortcuts in the action list in the (...) list options?


1 Like

Yes! We’ve actually had that conversation before but I appreciate your suggestions.

That screenshot is precisely what I need thank you so much.

(I’ve been using iPads on display at my local best buy to grab screenshots but obviously I can’t install Drafts on those.)

Actually… Looks like ‘⌘ + ,` no longer opens Settings. (This is why having the full list would be handy.)

Edit: ⌘ + Option + , no longer opens the Editing menu.

Thanks - that works now. And works very quickly!

I’m still using Series 3 Watch. When I changed to the Capture complication (the one with the mic icon), the complication always revert back to the Drafts icon when I switch between Watch faces. Pressing the complication launches Drafts in the capture mode. It’s just strange that the mic icon did not stay still. Watch OS 7.6.2 (18U80) here.

Is it expected not to find the Drafts complications anymore in the app? I only see 4 complications:

It should update to mic icon…sometimes watchOS take a little while to catch up with refreshing for changes.