Found 25 bookmarks
Newest
Drafts Directory: Format Phone Number
Drafts Directory: Format Phone Number
Example actions and other extensions for Drafts, the quick-capture notes app.
let inputNumber = editor.getSelectedText(); // Remove non-numeric characters const strippedInput = inputNumber.replace(/[^\d]/g, ''); // Check if the input is empty if (strippedInput === '') { console.log('Input must contain numerical characters'); context.cancel(); } else { // Remove leading '1' if present let formattedNumber = strippedInput; if (formattedNumber.startsWith('1')) { formattedNumber = formattedNumber.slice(1); } // Format the number const regex = /^(\d{3})(\d{3})(\d+)$/; formattedNumber = formattedNumber.replace(regex, '$1.$2.$3'); editor.setSelectedText(formattedNumber); }
Drafts Directory: Format Phone Number
Drafts (@drafts@indieapps.space)
Drafts (@drafts@indieapps.space)
52 Posts, 1 Following, 2.01K Followers · Drafts is where text starts on iPhone, iPad, Mac, and Apple Watch.
Drafts (@drafts@indieapps.space)
Post: TwitterMastodon
Post: TwitterMastodon
Example actions and other extensions for Drafts, the quick-capture notes app.
Post: TwitterMastodon
Drafts Directory: Capture with Bear
Drafts Directory: Capture with Bear
Example actions and other extensions for Drafts, the quick-capture notes app.
Upon returning to Drafts, a markdown-formatted hyperlink to the Bear note is placed at the cursor.
*This* is the key reason I decided to publish this action despite the handful of others on the directory that make use of Bear’s grab-url function.
Drafts Directory: Capture with Bear
A Decade of Drafts
A Decade of Drafts
I was a late iPhone adopter. I held on tight to my BlackBerry for way too long. It wasn’t until the iPhone 4S that I made my way over to the iPhone. And then a new opportunity really opened u…
A Decade of Drafts
Drafts Cult | Telegram Group
Drafts Cult | Telegram Group
An unofficial, no-such-thing-as-a-stupid-question chat group for https://getdrafts.com.
Drafts Cult | Telegram Group
Drafts Directory: Zalgos
Drafts Directory: Zalgos
Example actions and other extensions for Drafts, the quick-capture notes app.
Drafts Directory: Zalgos
Release Notes - Drafts User Guide
Release Notes - Drafts User Guide
Documentation for Drafts app, a quick-capture note taking app for iPhone, iPad, Mac and Apple Watch.
Release Notes - Drafts User Guide