From 56f30ef48d452082b8286ca565e5fac192630f96 Mon Sep 17 00:00:00 2001 From: David Blue Date: Wed, 23 Mar 2022 18:05:02 -0500 Subject: [PATCH] #1 --- README.md | 80 +++++++++++++++++++++++++++++++++++--------------- docs/README.md | 80 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 112 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 97b42fb..04af8b8 100644 --- a/README.md +++ b/README.md @@ -177,38 +177,66 @@ I did not originally intend to share this theme, but I sortof accidentally ended * [This theme’s Issue on my iOS-specific GitHub Repository](https://github.com/extratone/i/issues/50) -## Autocomplete +![Drafts Autocompletes](https://user-images.githubusercontent.com/43663476/159809109-ef35410c-d052-4ed4-9388-aa7895d1c434.png) -- [**wtf**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22New%20Item%22,%22label%22:%22New%20Item%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%22302904BD-7B48-44DE-94F7-62BA6131627C%22%7D) -`https://davidblue.wtf/drafts/\[[uuid]].html` +## Autocompletes +- [GitHub Issue](https://github.com/extratone/drafts/issues/31) +- [Directory of install URLS in the repo](https://github.com/extratone/drafts/blob/main/autocomplete) -- [**x**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%5B%5B%5Bdisplay_title%5D%5D%5D(%5B%5Bdraft_open_url%5D%5D)%22,%22label%22:%22x%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2223CB503F-8578-4F2D-AC21-5CAB5B73B4C3%22%7D) -`[\[[display_title]]](\[[draft_open_url]])` +This is a collection of my personal “[Autocomplete Suggestions](https://docs.getdrafts.com/docs/editor/autocomplete)” (identical to what [TextExpander](https://apps.apple.com/us/app/textexpander-keyboard/id1075927186) calls “snippets”) for Drafts, and they *are* installable, if you’d like. -- [**latlong**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%5B%5Blatitude%5D%5D-%5B%5Blongitude%5D%5D-%5B%5Bdate%7C%25m%25d%25Y-%25H%25M%25S%5D%5D%60%22,%22label%22:%22latlong%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2239E973FC-5E2D-4112-AC59-E9504127F9FA%22%7D) -``[[latitude]]-[[longitude]]-[[date|%m%d%Y-%H%M%S]]`` +*Definitely read [Tim Nahumck’s work on this feature](https://nahumck.me/drafts-29-autocomplete/) if you’re curious about it.* -- [**img**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22!%5B%5D(%5B%5Bclipboard%5D%5D)%22,%22label%22:%22img%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2233AE9B3A-FD6E-44D8-BC21-7F444FBDF62B%22%7D) -`![]([[clipboard]])` +#### Install +The hyperlinks on the expansion triggers will take you a corresponding plain text file containing the installation URL (which is, of course, the entire contents of each, encoded in a string.) Copy the full text of the URL, paste it in your web browser, and tap/click “Go” (or your equivalent)/key `RETURN` or `ENTER`. Regardless of platform, you should receive a prompt asking if you’d like to open it in Drafts. -- [**code**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%60%60%5Cn%5B%5Bclipboard%5D%5D%5Cn%60%60%60%22,%22label%22:%22code%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%226B95C6F5-CB4A-4322-BA97-BDE0AD1F17E2%22%7D) -```` -[[clipboard]] -```` -- [**snap**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%5B%5Bclipboard%5D%5D%60%22,%22label%22:%22snap%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%22584A94FE-1275-434F-A773-F01A675B7566%22%7D) -``[[clipboard]]`` +Here’s a wee demo video: + +--- -- [**video**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%3Cvideo%20controls%3E%5Cn%20%20%3Csource%20src%3D%5C%22%5B%5Bclipboard%5D%5D%5C%22%3E%5Cn%3C%5C/video%3E%22,%22label%22:%22video%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2227B0332E-3B19-49C2-BE36-514338C8596D%22%7D) -`` +- [**wtf**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/wtf.txt) +``` +https://davidblue.wtf/drafts/[[uuid]].html +``` -- [**audio**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%3Caudio%20controls%3E%5Cn%20%20%3Csource%20src%3D%5C%22%5B%5Bclipboard%5D%5D%5C%22%3E%5Cn%3C%5C/audio%3E%22,%22label%22:%22audio%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%223365709F-0899-4EDC-80B1-BD42DCB219EC%22%7D) -`` +- [**x**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/x.txt) +``` +[[[display_title]]]([[draft_open_url]]) +``` +- [**latlong**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/latlong.txt) +``` +`[[latitude]]-[[longitude]]-[[date|%m%d%Y-%H%M%S]]` +``` +- [**img**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/img.txt) +``` +![]() +``` + +- [**code**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/code.txt) +``` +[[clipboard]] +``` + +- [**snap**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/snap.txt) +``` +[[clipboard]] +``` + +- [**video**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/video.txt) +``` + +``` + +- [**audio**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/audio.txt) +``` + +``` --- @@ -320,4 +348,8 @@ I did not originally intend to share this theme, but I sortof accidentally ended | Action | Command | |:--------------------------------:|:-------:| -| Actions->Manage Actions... | ^A | \ No newline at end of file +| Actions->Manage Actions... | ^A | + +--- + +[dREADME](shortcuts://run-shortcut?name=Drafts%20README%20Update) \ No newline at end of file diff --git a/docs/README.md b/docs/README.md index 97b42fb..04af8b8 100644 --- a/docs/README.md +++ b/docs/README.md @@ -177,38 +177,66 @@ I did not originally intend to share this theme, but I sortof accidentally ended * [This theme’s Issue on my iOS-specific GitHub Repository](https://github.com/extratone/i/issues/50) -## Autocomplete +![Drafts Autocompletes](https://user-images.githubusercontent.com/43663476/159809109-ef35410c-d052-4ed4-9388-aa7895d1c434.png) -- [**wtf**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22New%20Item%22,%22label%22:%22New%20Item%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%22302904BD-7B48-44DE-94F7-62BA6131627C%22%7D) -`https://davidblue.wtf/drafts/\[[uuid]].html` +## Autocompletes +- [GitHub Issue](https://github.com/extratone/drafts/issues/31) +- [Directory of install URLS in the repo](https://github.com/extratone/drafts/blob/main/autocomplete) -- [**x**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%5B%5B%5Bdisplay_title%5D%5D%5D(%5B%5Bdraft_open_url%5D%5D)%22,%22label%22:%22x%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2223CB503F-8578-4F2D-AC21-5CAB5B73B4C3%22%7D) -`[\[[display_title]]](\[[draft_open_url]])` +This is a collection of my personal “[Autocomplete Suggestions](https://docs.getdrafts.com/docs/editor/autocomplete)” (identical to what [TextExpander](https://apps.apple.com/us/app/textexpander-keyboard/id1075927186) calls “snippets”) for Drafts, and they *are* installable, if you’d like. -- [**latlong**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%5B%5Blatitude%5D%5D-%5B%5Blongitude%5D%5D-%5B%5Bdate%7C%25m%25d%25Y-%25H%25M%25S%5D%5D%60%22,%22label%22:%22latlong%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2239E973FC-5E2D-4112-AC59-E9504127F9FA%22%7D) -``[[latitude]]-[[longitude]]-[[date|%m%d%Y-%H%M%S]]`` +*Definitely read [Tim Nahumck’s work on this feature](https://nahumck.me/drafts-29-autocomplete/) if you’re curious about it.* -- [**img**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22!%5B%5D(%5B%5Bclipboard%5D%5D)%22,%22label%22:%22img%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2233AE9B3A-FD6E-44D8-BC21-7F444FBDF62B%22%7D) -`![]([[clipboard]])` +#### Install +The hyperlinks on the expansion triggers will take you a corresponding plain text file containing the installation URL (which is, of course, the entire contents of each, encoded in a string.) Copy the full text of the URL, paste it in your web browser, and tap/click “Go” (or your equivalent)/key `RETURN` or `ENTER`. Regardless of platform, you should receive a prompt asking if you’d like to open it in Drafts. -- [**code**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%60%60%5Cn%5B%5Bclipboard%5D%5D%5Cn%60%60%60%22,%22label%22:%22code%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%226B95C6F5-CB4A-4322-BA97-BDE0AD1F17E2%22%7D) -```` -[[clipboard]] -```` -- [**snap**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%60%5B%5Bclipboard%5D%5D%60%22,%22label%22:%22snap%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%22584A94FE-1275-434F-A773-F01A675B7566%22%7D) -``[[clipboard]]`` +Here’s a wee demo video: + +--- -- [**video**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%3Cvideo%20controls%3E%5Cn%20%20%3Csource%20src%3D%5C%22%5B%5Bclipboard%5D%5D%5C%22%3E%5Cn%3C%5C/video%3E%22,%22label%22:%22video%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%2227B0332E-3B19-49C2-BE36-514338C8596D%22%7D) -`` +- [**wtf**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/wtf.txt) +``` +https://davidblue.wtf/drafts/[[uuid]].html +``` -- [**audio**](x-drafts://importautocompleteitem?data=%7B%22value%22:%22%3Caudio%20controls%3E%5Cn%20%20%3Csource%20src%3D%5C%22%5B%5Bclipboard%5D%5D%5C%22%3E%5Cn%3C%5C/audio%3E%22,%22label%22:%22audio%22,%22prefix%22:%22%22,%22suffix%22:%22%22,%22includesSuffix%22:true,%22identifier%22:%223365709F-0899-4EDC-80B1-BD42DCB219EC%22%7D) -`` +- [**x**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/x.txt) +``` +[[[display_title]]]([[draft_open_url]]) +``` +- [**latlong**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/latlong.txt) +``` +`[[latitude]]-[[longitude]]-[[date|%m%d%Y-%H%M%S]]` +``` +- [**img**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/img.txt) +``` +![]() +``` + +- [**code**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/code.txt) +``` +[[clipboard]] +``` + +- [**snap**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/snap.txt) +``` +[[clipboard]] +``` + +- [**video**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/video.txt) +``` + +``` + +- [**audio**](https://raw.githubusercontent.com/extratone/drafts/main/snippets/audio.txt) +``` + +``` --- @@ -320,4 +348,8 @@ I did not originally intend to share this theme, but I sortof accidentally ended | Action | Command | |:--------------------------------:|:-------:| -| Actions->Manage Actions... | ^A | \ No newline at end of file +| Actions->Manage Actions... | ^A | + +--- + +[dREADME](shortcuts://run-shortcut?name=Drafts%20README%20Update) \ No newline at end of file