Posted by FlohGroInstall (x-drafts://importtheme?identifier=2Dd&data=%7B%22isHidden%22:false,%22source%22:%22%7B%5C%22name%5C%22:%5C%22Vivid%20Black+%20Red%5C%22,%5C%22description%5C%22:%5C%22*created%20by%20%5B@FlohGro%5D(https://twitter.com/FlohGro)%20/%20more%20on%20my%20%5BBlog%5D(http://www.flohgro.com/)*%5C%5Cn%5C%5CnThis%20theme%20is%20a%20modified%20version%20of%20@agiletortoise)
Vivid Black+ Purple
https://actions.getdrafts.com/t/2De
created by @FlohGro (https://twitter.com/FlohGro) / more on my Blog (http://www.flohgro.com/)
This theme is a modified version of @agiletortoise’s Vivid Dark+ Theme (https://directory.getdrafts.com/t/1im) which is an extension of the built-in Vivid Dark theme, with more font styling and vairation, such as sized headings.
I changed the background to black (great for OLED :)) and adapted the highlight color to Purple
If you like the theme, enjoy using it and want to support me you can
https://actions.getdrafts.com/t/2De
created by @FlohGro (https://twitter.com/FlohGro) / more on my Blog (http://www.flohgro.com/)
This theme is a modified version of @agiletortoise’s Vivid Dark+ Theme (https://directory.getdrafts.com/t/1im) which is an extension of the built-in Vivid Dark theme, with more font styling and vairation, such as sized headings.
I changed the background to black (great for OLED :)) and adapted the highlight color to Purple
If you like the theme, enjoy using it and want to support me you can
Posted by FlohGroInstall (x-drafts://importtheme?identifier=2De&data=%7B%22isHidden%22:false,%22source%22:%22%7B%5C%22name%5C%22:%5C%22Vivid%20Black+%20Purple%5C%22,%5C%22description%5C%22:%5C%22*created%20by%20%5B@FlohGro%5D(https://twitter.com/FlohGro)%20/%20more%20on%20my%20%5BBlog%5D(http://www.flohgro.com/)*%5C%5Cn%5C%5CnThis%20theme%20is%20a%20modified%20version%20of%20@agiletortoise)
HTML Comment
https://actions.getdrafts.com/a/2Dj
Wraps selected text in HTML comment tags (https://www.w3schools.com/tags/tag_comment.asp) (‘<!– –>’.) If no text is selected, the cursor is placed between the same.
This action was made possible by @sylumer’s Insert Highlight Action (https://actions.getdrafts.com/a/2CK). You’ll note, in fact - at least as of initial release - it includes his Script step, entirely unmodified (including the comments!)
Posted by David BlueInstall (drafts5://action?identifier=2Dj&data=%7B%22notificationType%22:1,%22disposition%22:0,%22assignTags%22:%5B%5D,%22icon%22:%22chat-alert%22,%22groupDisposition%22:0,%22uuid%22:%221515523E-5618-4FCD-9530-80ACF9B78000%22,%22visibility%22:480,%22name%22:%22HTML%20Comment%22,%22groupUUID%22:%22896E9936-31AB-4722-A67D-AA578EABE763%22,%22tintColor%22:%22gray%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:true,%22input%22:%22C%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22HTML%20Comment%22,%22shiftKey%22:true%7D,%22keyUseIcon%22:true,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Wraps%20selected%20text%20in%20HTML%20comment%20tags%20()
https://actions.getdrafts.com/a/2Dj
Wraps selected text in HTML comment tags (https://www.w3schools.com/tags/tag_comment.asp) (‘<!– –>’.) If no text is selected, the cursor is placed between the same.
This action was made possible by @sylumer’s Insert Highlight Action (https://actions.getdrafts.com/a/2CK). You’ll note, in fact - at least as of initial release - it includes his Script step, entirely unmodified (including the comments!)
Posted by David BlueInstall (drafts5://action?identifier=2Dj&data=%7B%22notificationType%22:1,%22disposition%22:0,%22assignTags%22:%5B%5D,%22icon%22:%22chat-alert%22,%22groupDisposition%22:0,%22uuid%22:%221515523E-5618-4FCD-9530-80ACF9B78000%22,%22visibility%22:480,%22name%22:%22HTML%20Comment%22,%22groupUUID%22:%22896E9936-31AB-4722-A67D-AA578EABE763%22,%22tintColor%22:%22gray%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:true,%22input%22:%22C%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22HTML%20Comment%22,%22shiftKey%22:true%7D,%22keyUseIcon%22:true,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Wraps%20selected%20text%20in%20HTML%20comment%20tags%20()
Primary (Light)
https://actions.getdrafts.com/t/2Du
A theme inspired by Cecilia May’s Primary theme for Obsidian (https://github.com/ceciliamay/obsidianmd-theme-primary). Adapted using Six Colors (Light). I recommend using the fonts Cecilia May originally envisioned for this theme:
* Karla
* Lora
* Inter
All fonts available for free through Google Fonts.
Posted by @RhoadeyInstall (x-drafts://importtheme?identifier=2Du&data=%7B%22isHidden%22:false,%22source%22:%22%7B%5C%22name%5C%22:%5C%22Primary%20(Light)%5C%22,%5C%22description%5C%22:%5C%22Inspired%20by%20Cecilia%20May)
https://actions.getdrafts.com/t/2Du
A theme inspired by Cecilia May’s Primary theme for Obsidian (https://github.com/ceciliamay/obsidianmd-theme-primary). Adapted using Six Colors (Light). I recommend using the fonts Cecilia May originally envisioned for this theme:
* Karla
* Lora
* Inter
All fonts available for free through Google Fonts.
Posted by @RhoadeyInstall (x-drafts://importtheme?identifier=2Du&data=%7B%22isHidden%22:false,%22source%22:%22%7B%5C%22name%5C%22:%5C%22Primary%20(Light)%5C%22,%5C%22description%5C%22:%5C%22Inspired%20by%20Cecilia%20May)
Send selected URL to Gladys (https://apps.apple.com/us/app/gladys/id1257526927) as a URL item via X-Callback-URL (https://www.bru.build/gladys-callback-scheme). By default, the current draft’s tags will be attached as labels to the item. If no text is selected, the entire draft contents will be passed.
gladys://x-callback-url/create-item?text=[selection]&labels=[tags]
Posted by David BlueInstall (drafts5://action?identifier=2Dw&data=%7B%22notificationType%22:2,%22disposition%22:0,%22assignTags%22:%5B%5D,%22icon%22:%22301-alien-ship%22,%22groupDisposition%22:0,%22uuid%22:%228CBB00A7-EFD5-465A-82E1-D96E12EE9B2D%22,%22visibility%22:480,%22name%22:%22Gladys%20URL%20Item%20from%20Selection%22,%22groupUUID%22:%22896E9936-31AB-4722-A67D-AA578EABE763%22,%22tintColor%22:%22yellow%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:true,%22input%22:%22G%22,%22controlKey%22:true,%22commandKey%22:true,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Gladys%20URL%20Item%20from%20Selection%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:false,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Send%20selected%20URL%20to%20Gladys%20as%20a%20URL%20item.%20If%20no%20text%20is%20selected,%20the%20entire%20draft%20contents%20will%20be%20passed.%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22template%22:%22gladys://x-callback-url/create-item?text=%5B%5Bselection%5D%5D%5Cu0026labels=%5B%5Btags%5D%5D%22,%22encodeTags%22:%22true%22,%22waitForResponse%22:%22false%22%7D,%22type%22:%22callbackUrl%22,%22isEnabled%22:true,%22uuid%22:%22FDA9412A-3C14-4786-9115-5E6385035983%22%7D%5D,%22shouldConfirm%22:false%7D)
gladys://x-callback-url/create-item?text=[selection]&labels=[tags]
Posted by David BlueInstall (drafts5://action?identifier=2Dw&data=%7B%22notificationType%22:2,%22disposition%22:0,%22assignTags%22:%5B%5D,%22icon%22:%22301-alien-ship%22,%22groupDisposition%22:0,%22uuid%22:%228CBB00A7-EFD5-465A-82E1-D96E12EE9B2D%22,%22visibility%22:480,%22name%22:%22Gladys%20URL%20Item%20from%20Selection%22,%22groupUUID%22:%22896E9936-31AB-4722-A67D-AA578EABE763%22,%22tintColor%22:%22yellow%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:true,%22input%22:%22G%22,%22controlKey%22:true,%22commandKey%22:true,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Gladys%20URL%20Item%20from%20Selection%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:false,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Send%20selected%20URL%20to%20Gladys%20as%20a%20URL%20item.%20If%20no%20text%20is%20selected,%20the%20entire%20draft%20contents%20will%20be%20passed.%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22template%22:%22gladys://x-callback-url/create-item?text=%5B%5Bselection%5D%5D%5Cu0026labels=%5B%5Btags%5D%5D%22,%22encodeTags%22:%22true%22,%22waitForResponse%22:%22false%22%7D,%22type%22:%22callbackUrl%22,%22isEnabled%22:true,%22uuid%22:%22FDA9412A-3C14-4786-9115-5E6385035983%22%7D%5D,%22shouldConfirm%22:false%7D)
Send to Everlog
https://actions.getdrafts.com/a/2Dx
Export the current draft to Everlog as a journal entry.
Posted by tekeousInstall (drafts5://action?identifier=2Dx&data=%7B%22notificationType%22:2,%22disposition%22:1,%22assignTags%22:%5B%5D,%22icon%22:%22archive-download%22,%22groupDisposition%22:0,%22uuid%22:%225637F3AB-AF16-4CFA-B82C-56BD3E09AA72%22,%22visibility%22:480,%22name%22:%22Send%20to%20Everlog%22,%22groupUUID%22:%228B70C3BB-2D43-409B-A580-929FDE78D6BB%22,%22tintColor%22:%22violet%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Send%20to%20Everlog%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:false,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Add%20the%20current%20draft%20to%20the%20active%20Obsidian%20vault%20as%20a%20new%20file,%20using%20the%20first%20line%20of%20the%20draft%20as%20the%20file%20name.%20The%20file%20location%20is%20based%20on%20the%20default%20folder%20for%20new%20files%20as%20specified%20in%20Obsidian%20settings.%5Cn%5CnThis%20example%20utilizes%20%5BObsidian%E2%80%99s%20URL%20scheme%20support%5D(https://help.obsidian.md/Advanced+topics/Using+obsidian+URI).%20More%20details%20on%20available%20options%20in%20%5Btheir%20documentation%5D(https://help.obsidian.md/Advanced+topics/Using+obsidian+URI).%5Cn%5CnNote%20that%20Drafts%20can%20also%20write%20to%20files%20using%20files%20action,%20if%20you%20wish%20to%20implement%20actions%20which%20write%20directly%20to%20a%20file%20in%20a%20folder%20used%20as%20an%20Obsidian%20vault.%5Cn%5CnFor%20more%20details%20and%20ideas,%20read%20our%20%5BObsidian%20Integration%20Guide%5D(https://forums.getdrafts.com/t/using-drafts-with-obsidian/11221)%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22useSafari%22:%22false%22,%22encodeTags%22:%22true%22,%22template%22:%22everlog://newEntry?content=%5B%5Btitle%5D%5D%2520%5B%5Bbody%5D%5D%2520%5Cu0026journal=Journal%22%7D,%22type%22:%22url%22,%22isEnabled%22:true,%22uuid%22:%22AAC3BB54-A423-4AA9-8332-9EC8F2D32808%22%7D%5D,%22shouldConfirm%22:false%7D)
https://actions.getdrafts.com/a/2Dx
Export the current draft to Everlog as a journal entry.
Posted by tekeousInstall (drafts5://action?identifier=2Dx&data=%7B%22notificationType%22:2,%22disposition%22:1,%22assignTags%22:%5B%5D,%22icon%22:%22archive-download%22,%22groupDisposition%22:0,%22uuid%22:%225637F3AB-AF16-4CFA-B82C-56BD3E09AA72%22,%22visibility%22:480,%22name%22:%22Send%20to%20Everlog%22,%22groupUUID%22:%228B70C3BB-2D43-409B-A580-929FDE78D6BB%22,%22tintColor%22:%22violet%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Send%20to%20Everlog%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:false,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22Add%20the%20current%20draft%20to%20the%20active%20Obsidian%20vault%20as%20a%20new%20file,%20using%20the%20first%20line%20of%20the%20draft%20as%20the%20file%20name.%20The%20file%20location%20is%20based%20on%20the%20default%20folder%20for%20new%20files%20as%20specified%20in%20Obsidian%20settings.%5Cn%5CnThis%20example%20utilizes%20%5BObsidian%E2%80%99s%20URL%20scheme%20support%5D(https://help.obsidian.md/Advanced+topics/Using+obsidian+URI).%20More%20details%20on%20available%20options%20in%20%5Btheir%20documentation%5D(https://help.obsidian.md/Advanced+topics/Using+obsidian+URI).%5Cn%5CnNote%20that%20Drafts%20can%20also%20write%20to%20files%20using%20files%20action,%20if%20you%20wish%20to%20implement%20actions%20which%20write%20directly%20to%20a%20file%20in%20a%20folder%20used%20as%20an%20Obsidian%20vault.%5Cn%5CnFor%20more%20details%20and%20ideas,%20read%20our%20%5BObsidian%20Integration%20Guide%5D(https://forums.getdrafts.com/t/using-drafts-with-obsidian/11221)%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22useSafari%22:%22false%22,%22encodeTags%22:%22true%22,%22template%22:%22everlog://newEntry?content=%5B%5Btitle%5D%5D%2520%5B%5Bbody%5D%5D%2520%5Cu0026journal=Journal%22%7D,%22type%22:%22url%22,%22isEnabled%22:true,%22uuid%22:%22AAC3BB54-A423-4AA9-8332-9EC8F2D32808%22%7D%5D,%22shouldConfirm%22:false%7D)
Attach File from iCloud
https://actions.getdrafts.com/a/2EB
Attach a File from iCloud
Posted by YeggeInstall (drafts5://action?identifier=2EB&data=%7B%22uuid%22:%22161E88A3-0462-49AE-95D1-8E3D2A55EBFB%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22writeType%22:%22append%22,%22tagsTemplate%22:%22%22,%22fileNameTemplate%22:%22%5B%5Btime%5D%5D.txt%22,%22templateType%22:%22legacy%22,%22local%22:%22false%22,%22bookmarkName%22:%22Document%22,%22setDateAttributes%22:%22false%22,%22folderTemplate%22:%22%22,%22template%22:%22%5B%5Bdraft%5D%5D%22,%22useBookmark%22:%22false%22%7D,%22type%22:%22file%22,%22isEnabled%22:true,%22uuid%22:%22F45FF754-6433-4FFC-9664-34161069ACD1%22%7D%5D,%22backingPlatforms%22:3,%22shortName%22:%22attach%20File%22,%22shouldConfirm%22:false,%22disposition%22:0,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Attach%20File%20from%20iCloud%22,%22shiftKey%22:false%7D,%22logLevel%22:2,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22none%22,%22actionDescription%22:%22Attach%20a%20File%20from%20iCloud%22,%22keyUseIcon%22:true,%22icon%22:%22%22,%22visibility%22:480,%22backingIsSeparator%22:false,%22groupUUID%22:%22679D00DF-73E3-42C6-B2FD-B3D448250761%22,%22assignTags%22:%5B%22%23icloudattachment%22%5D,%22name%22:%22Attach%20File%20from%20iCloud%22%7D)
https://actions.getdrafts.com/a/2EB
Attach a File from iCloud
Posted by YeggeInstall (drafts5://action?identifier=2EB&data=%7B%22uuid%22:%22161E88A3-0462-49AE-95D1-8E3D2A55EBFB%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22writeType%22:%22append%22,%22tagsTemplate%22:%22%22,%22fileNameTemplate%22:%22%5B%5Btime%5D%5D.txt%22,%22templateType%22:%22legacy%22,%22local%22:%22false%22,%22bookmarkName%22:%22Document%22,%22setDateAttributes%22:%22false%22,%22folderTemplate%22:%22%22,%22template%22:%22%5B%5Bdraft%5D%5D%22,%22useBookmark%22:%22false%22%7D,%22type%22:%22file%22,%22isEnabled%22:true,%22uuid%22:%22F45FF754-6433-4FFC-9664-34161069ACD1%22%7D%5D,%22backingPlatforms%22:3,%22shortName%22:%22attach%20File%22,%22shouldConfirm%22:false,%22disposition%22:0,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Attach%20File%20from%20iCloud%22,%22shiftKey%22:false%7D,%22logLevel%22:2,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22none%22,%22actionDescription%22:%22Attach%20a%20File%20from%20iCloud%22,%22keyUseIcon%22:true,%22icon%22:%22%22,%22visibility%22:480,%22backingIsSeparator%22:false,%22groupUUID%22:%22679D00DF-73E3-42C6-B2FD-B3D448250761%22,%22assignTags%22:%5B%22%23icloudattachment%22%5D,%22name%22:%22Attach%20File%20from%20iCloud%22%7D)
Reminders from lines in Draft with Options
https://actions.getdrafts.com/a/2EK
created by @FlohGro (https://twitter.com/FlohGro) / more on my Blog (http://www.flohgro.com/)
adapted from this action: https://actions.getdrafts.com/a/1Rr
Prompt to create a reminder in the Reminders app with options to set due date, priority, and select the target list.
Each line in the Draft will be considered as task (you can edit them in the prompt)
The “Due” date field supports natural language parsing of dates, so things like “2pm Friday”, or “next Wednesday” work for specifying due date.
If you find this useful and want to support me you can
https://actions.getdrafts.com/a/2EK
created by @FlohGro (https://twitter.com/FlohGro) / more on my Blog (http://www.flohgro.com/)
adapted from this action: https://actions.getdrafts.com/a/1Rr
Prompt to create a reminder in the Reminders app with options to set due date, priority, and select the target list.
Each line in the Draft will be considered as task (you can edit them in the prompt)
The “Due” date field supports natural language parsing of dates, so things like “2pm Friday”, or “next Wednesday” work for specifying due date.
If you find this useful and want to support me you can
Posted by FlohGroInstall (drafts5://action?identifier=2EK&data=%7B%22notificationType%22:2,%22disposition%22:3,%22assignTags%22:%5B%5D,%22icon%22:%22action_reminders%22,%22groupDisposition%22:0,%22uuid%22:%22AF72424E-79EE-42AA-BF2E-F950E0CCA7DD%22,%22visibility%22:480,%22name%22:%22Reminders%20from%20lines%20in%20Draft%20with%20Options%22,%22groupUUID%22:%221741B889-EF47-41E4-863C-6D915D8C5519%22,%22tintColor%22:%22gray%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Reminders%20from%20lines%20in%20Draft%20with%20Options%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:false,%22backingIsSeparator%22:false,%22shortName%22:%22%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22*created%20by%20%5B@FlohGro%5D(https://twitter.com/FlohGro)%20/%20more%20on%20my%20%5BBlog%5D(http://www.flohgro.com/)*%5Cn%5Cnadapted%20from%20this%20action:%20https://actions.getdrafts.com/a/1Rr%5Cn%5CnPrompt%20to%20create%20a%20reminder%20in%20the%20Reminders%20app%20with%20options%20to%20set%20due%20date,%20priority,%20and%20select%20the%20target%20list.%20%5CnEach%20line%20in%20the%20Draft%20will%20be%20considered%20as%20task%20(you%20can%20edit%20them%20in%20the%20prompt)%5Cn%5CnThe%20%E2%80%9CDue%E2%80%9D%20date%20field%20supports%20natural%20language%20parsing%20of%20dates,%20so%20things%20like%20%E2%80%9C2pm%20Friday%E2%80%9D,%20or%20%E2%80%9Cnext%20Wednesday%E2%80%9D%20work%20for%20specifying%20due%20date.%5Cn%5Cn---%5Cn%5Cn*If%20you%20find%20this%20useful%20and%20want%20to%20support%20me%20you%20can*%20%5Cn%5Cn%5Cu003ca%20href=%5C%22https://www.buymeacoffee.com/flohgro%5C%22%20target=%5C%22_blank%5C%22%5Cu003e%5Cu003cimg%20src=%5C%22https://cdn.buymeacoffee.com/buttons/v2/default-blue.png%5C%22%20alt=%5C%22Buy%20Me%20A%20Coffee%5C%22%20style=%5C%22height:%2051px%20!important;width:%20209px%20!important;%5C%22%20%5Cu003e%5Cu003c/a%5Cu003e%5Cn%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22let%20f%20=%20()%20=%5Cu003e%20%7B%5Cn%5Ct//%20check%20if%20draft%20is%20empty%5Cn%5Ctif(draft.content.length%20==%200)%7B%5Cn%5Ctreturn%201;%5Cn%5Ctapp.displayInfoMessage(%5C%22draft%20is%20empty%5C%22)%5Cn%5Ct%7D%5Cn%5Ct//get%20array%20of%20tasks%20(each%20line)%5Cn%5Ctlet%20tasks%20=%20draft.content.split(%5C%22%5C%5Cn%5C%22);%5Cn%5Ct//%20get%20lists%5Cn%5Ctlet%20lists%20=%20ReminderList.getAllReminderLists();%5Cn%5Ctlet%20listNames%20=%20lists.map(x%20=%5Cu003e%20x.title);%5Cn%5Ctlet%20defaultList%20=%20ReminderList.default();%5Cn%5Ctlet%20defaultIndex%20=%20listNames.findIndex(x%20=%5Cu003e%20x%20==%20defaultList.title);%5Cn%5Ctlet%20createdRemCount%20=%200%5Cn%20%20%20for(task%20of%20tasks)%7B%5Cn%5Ctlet%20p%20=%20Prompt.create();%5Cn%5Ctp.title%20=%20%5C%22Create%20Reminder%5C%22%5Cn%5Ctp.message%20=%20%5C%22Select%20options%20for%20new%20task%20below.%5C%22;%5Cn%5Ct%5Cn%5Ctp.addTextField(%5C%22title%5C%22,%20%5C%22Title%5C%22,%20task,%20%7B%7D);%5Cn%5Ctp.addTextField(%5C%22dueDate%5C%22,%20%5C%22Due%5C%22,%20%5C%22%5C%22,%20%7B%5Cn%5Ct%5Ct%5C%22placeholder%5C%22:%20%5C%22optional%20date%5C%22%5Cn%5Ct%7D);%5Cn%5Ctp.addPicker(%5C%22priority%5C%22,%20%5C%22Priority%5C%22,%20%5B%5B%5C%22None%5C%22,%20%5C%22Low%5C%22,%20%5C%22Medium%5C%22,%20%5C%22High%5C%22%5D%5D,%20%5B0%5D);%5Cn%5Ctp.addTextView(%5C%22notes%5C%22,%20%5C%22Notes%5C%22,%20%5C%22%5C%22,%20%7B%7D);%5Cn%5Ctp.addPicker(%5C%22list%5C%22,%20%5C%22List%5C%22,%20%5BlistNames%5D,%20%5BdefaultIndex%5D);%5Cn%5Ct%5Cn%5Ctp.addButton(%5C%22Create%20Reminder%5C%22);%5Cn%5Ctif%20(!p.show())%20%7B%5Cn%5Ct%5Ctreturn%201;%5Cn%5Ct%20%20%20app.displayInfoMessage(%5C%22aborted%20by%20user%5C%22)%5Cn%5Ct%7D%5Cn%5Ct%5Cn%5Ctlet%20selectedListIndex%20=%20p.fieldValues%5B%5C%22list%5C%22%5D;%5Cn%5Ctlet%20list%20=%20lists%5BselectedListIndex%5D;%5Cn%5Ctlet%20rem%20=%20list.createReminder();%5Cn%5Ct%5Cn%5Ctrem.title%20=%20p.fieldVal
ues%5B%5C%22title%5C%22%5D;%5Cn%5Ctrem.notes%20=%20p.fieldValues%5B%5C%22notes%5C%22%5D;%5Cn%5Ctlet%20dStr%20=%20p.fieldValues%5B%5C%22dueDate%5C%22%5D;%5Cn%5Ctif%20(dStr%20%5Cu0026%5Cu0026%20dStr.length%20%5Cu003e%200)%20%7B%5Cn%5Ct%5Ctrem.dueDate%20=%20Date.parse(dStr);%5Cn%5Ct%7D%5Cn%5Ctlet%20priority%20=%20p.fieldValues%5B%5C%22priority%5C%22%5D;%5Cn%5Ctif%20(priority%20==%201)%20%7B%5Cn%5Ct%5Ctrem.priority%20=%209;%5Cn%5Ct%7D%5Cn%5Ctelse%20if%20(priority%20==%202)%20%7B%5Cn%5Ct%5Ctrem.priority%20=%205;%5Cn%5Ct%7D%5Cn%5Ctelse%20if%20(priority%20==%203)%20%7B%5Cn%5Ct%5Ctrem.priority%20=%201;%5Cn%5Ct%7D%5Cn%5Ctelse%20%7B%5Cn%5Ct%5Ctrem.priority%20=%200;%5Cn%5Ct%7D%5Cn%5Ctif%20(rem.update())%20%7B%5Cn%5Ct%5Ctconsole.log(%5C%22Reminder%20created%5C%22);%5Cn%5Ct%7D%5Cn%5Ctelse%20%7B%5Cn%5Ct%5Ctconsole.log(%5C%22Error%20creating%20reminder%5C%22);%5Cn%5Ct%5Ctreturn%20-1;%5Cn%5Ct%7D%5Cn%5CtcreatedRemCount++;%5Cn%5Ct%7D%5Cn%5Cn%5Ctreturn%20createdRemCount;%5Cn%7D%5Cn%5Cnlet%20result%20=%20f();%5Cnswitch%20(result)%20%7B%5Cn%5Ctcase%20-1:%20context.fail();%20break;%5Cn%5Ctcase%201:%20context.cancel();%20break;%5Cn%5Ctdefault:%20app.displaySuccessMessage(%5C%22created%20%5C%22%20+%20result%20+%20%5C%22%20reminders%5C%22)%5Cn%7D%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%22BCAFE48F-658E-4FB2-9704-30DCEA2CAFC2%22%7D%5D,%22shouldConfirm%22:false%7D)
Remind Me Tomorrow
https://actions.getdrafts.com/a/2EL
Create a reminder from the current draft with an alarm at 09:00 tomorrow.
github.com/ernstwi/drafts-actions (https://github.com/ernstwi/drafts-actions)
Posted by ernstwiInstall (drafts5://action?identifier=2EL&data=%7B%22uuid%22:%2291778DEF-7720-4B25-A1F8-921B46E0DC68%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22let%20title%20=%20draft.processTemplate(%5C%22%5B%5Btitle%5D%5D%5C%22);%5Cnlet%20notes%20=%20draft.processTemplate(%5C%22%5B%5Bbody%5D%5D%5C%22);%5Cn%5Cnlet%20rem%20=%20ReminderList.default().createReminder();%5Cnrem.title%20=%20title;%5Cnrem.notes%20=%20%60%24%7Bnotes%7D%5C%5Cn%5C%5Cndrafts://x-callback-url/open?uuid=%24%7Bdraft.uuid%7D%60;%5Cnlet%20date%20=%20new%20Date();%5Cndate.setDate(date.getDate()%20+%201);%5Cndate.setHours(9,%200,%200);%5Cnrem.addAlarm(Alarm.alarmWithDate(date));%5Cnif%20(!rem.update())%20context.fail();%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%22BCB7AF11-7598-4176-9880-464373256D5E%22%7D%5D,%22backingPlatforms%22:3,%22shortName%22:%22%22,%22shouldConfirm%22:false,%22disposition%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Remind%20Me%20Tomorrow%22,%22shiftKey%22:false%7D,%22logLevel%22:2,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22none%22,%22actionDescription%22:%22%22,%22keyUseIcon%22:false,%22icon%22:%22action_right%22,%22visibility%22:480,%22backingIsSeparator%22:false,%22groupUUID%22:%227C1211EB-D1B0-43E8-A43D-25B15A5EE346%22,%22assignTags%22:%5B%5D,%22name%22:%22Remind%20Me%20Tomorrow%22%7D)
https://actions.getdrafts.com/a/2EL
Create a reminder from the current draft with an alarm at 09:00 tomorrow.
github.com/ernstwi/drafts-actions (https://github.com/ernstwi/drafts-actions)
Posted by ernstwiInstall (drafts5://action?identifier=2EL&data=%7B%22uuid%22:%2291778DEF-7720-4B25-A1F8-921B46E0DC68%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22let%20title%20=%20draft.processTemplate(%5C%22%5B%5Btitle%5D%5D%5C%22);%5Cnlet%20notes%20=%20draft.processTemplate(%5C%22%5B%5Bbody%5D%5D%5C%22);%5Cn%5Cnlet%20rem%20=%20ReminderList.default().createReminder();%5Cnrem.title%20=%20title;%5Cnrem.notes%20=%20%60%24%7Bnotes%7D%5C%5Cn%5C%5Cndrafts://x-callback-url/open?uuid=%24%7Bdraft.uuid%7D%60;%5Cnlet%20date%20=%20new%20Date();%5Cndate.setDate(date.getDate()%20+%201);%5Cndate.setHours(9,%200,%200);%5Cnrem.addAlarm(Alarm.alarmWithDate(date));%5Cnif%20(!rem.update())%20context.fail();%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%22BCB7AF11-7598-4176-9880-464373256D5E%22%7D%5D,%22backingPlatforms%22:3,%22shortName%22:%22%22,%22shouldConfirm%22:false,%22disposition%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Remind%20Me%20Tomorrow%22,%22shiftKey%22:false%7D,%22logLevel%22:2,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22none%22,%22actionDescription%22:%22%22,%22keyUseIcon%22:false,%22icon%22:%22action_right%22,%22visibility%22:480,%22backingIsSeparator%22:false,%22groupUUID%22:%227C1211EB-D1B0-43E8-A43D-25B15A5EE346%22,%22assignTags%22:%5B%5D,%22name%22:%22Remind%20Me%20Tomorrow%22%7D)
Share with schof.link
https://actions.getdrafts.com/a/2EN
Shares a markdown document using Schof.link, giving it a public link you can share.
Posted by ThomasInstall (drafts5://action?identifier=2EN&data=%7B%22notificationType%22:2,%22disposition%22:3,%22assignTags%22:%5B%5D,%22icon%22:%22btn-linkmode-selected%22,%22groupDisposition%22:0,%22uuid%22:%22D0591641-8AF9-46D6-8FDD-9FC04EDFD5D9%22,%22visibility%22:480,%22name%22:%22Share%20with%20schof.link%22,%22groupUUID%22:%22146CB07C-9612-4B5E-961C-870B9DACD6F2%22,%22tintColor%22:%22pink%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Share%20with%20schof.link%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:true,%22backingIsSeparator%22:false,%22shortName%22:%22Schof.link%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22var%20http%20=%20HTTP.create();%5Cnvar%20response%20=%20http.request(%7B%5Cn%20%20%5C%22url%5C%22:%20%5C%22https://schof.link/api/md%5C%22,%5Cn%20%20%5C%22method%5C%22:%20%5C%22POST%5C%22,%5Cn%20%20%5C%22data%5C%22:%20%7B%5Cn%20%20%20%20%5C%22content%5C%22:draft.content%5Cn%20%20%7D%5Cn%7D);%5Cn%5Cnif%20(response.success)%20%7B%5Cn%20%20var%20data%20=%20response.responseData;%5Cn%20%20app.setClipboard(data.publicUrl);%5Cn%7D%5Cnelse%20%7B%5Cn%20%20console.log(response.statusCode);%5Cn%20%20console.log(response.error);%5Cn%7D%5Cn%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%222B4E6976-6937-4ADA-AF38-B5EE513804A7%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22useSafari%22:%22false%22,%22encodeTags%22:%22false%22,%22template%22:%22%5B%5Bclipboard%5D%5D%22%7D,%22type%22:%22url%22,%22isEnabled%22:true,%22uuid%22:%22B90581BE-D4F9-4A52-84DC-F3B90D970659%22%7D%5D,%22shouldConfirm%22:false%7D)
https://actions.getdrafts.com/a/2EN
Shares a markdown document using Schof.link, giving it a public link you can share.
Posted by ThomasInstall (drafts5://action?identifier=2EN&data=%7B%22notificationType%22:2,%22disposition%22:3,%22assignTags%22:%5B%5D,%22icon%22:%22btn-linkmode-selected%22,%22groupDisposition%22:0,%22uuid%22:%22D0591641-8AF9-46D6-8FDD-9FC04EDFD5D9%22,%22visibility%22:480,%22name%22:%22Share%20with%20schof.link%22,%22groupUUID%22:%22146CB07C-9612-4B5E-961C-870B9DACD6F2%22,%22tintColor%22:%22pink%22,%22backingPlatforms%22:3,%22keyCommand%22:%7B%22optionKey%22:false,%22input%22:%22%22,%22controlKey%22:false,%22commandKey%22:false,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Share%20with%20schof.link%22,%22shiftKey%22:false%7D,%22keyUseIcon%22:true,%22backingIsSeparator%22:false,%22shortName%22:%22Schof.link%22,%22backingActionType%22:%22action%22,%22actionDescription%22:%22%22,%22logLevel%22:2,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22var%20http%20=%20HTTP.create();%5Cnvar%20response%20=%20http.request(%7B%5Cn%20%20%5C%22url%5C%22:%20%5C%22https://schof.link/api/md%5C%22,%5Cn%20%20%5C%22method%5C%22:%20%5C%22POST%5C%22,%5Cn%20%20%5C%22data%5C%22:%20%7B%5Cn%20%20%20%20%5C%22content%5C%22:draft.content%5Cn%20%20%7D%5Cn%7D);%5Cn%5Cnif%20(response.success)%20%7B%5Cn%20%20var%20data%20=%20response.responseData;%5Cn%20%20app.setClipboard(data.publicUrl);%5Cn%7D%5Cnelse%20%7B%5Cn%20%20console.log(response.statusCode);%5Cn%20%20console.log(response.error);%5Cn%7D%5Cn%22,%22allowAsync%22:%22false%22%7D,%22type%22:%22script%22,%22isEnabled%22:true,%22uuid%22:%222B4E6976-6937-4ADA-AF38-B5EE513804A7%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22useSafari%22:%22false%22,%22encodeTags%22:%22false%22,%22template%22:%22%5B%5Bclipboard%5D%5D%22%7D,%22type%22:%22url%22,%22isEnabled%22:true,%22uuid%22:%22B90581BE-D4F9-4A52-84DC-F3B90D970659%22%7D%5D,%22shouldConfirm%22:false%7D)
Add to Obsidian Daily Note
https://actions.getdrafts.com/a/2EO
created by @FlohGro (https://twitter.com/FlohGro) / more on my Website (http://www.flohgro.com/)
Add to Obsidian Daily Note
This action will add the contents of the current draft to the todays Daily Note in Obsidian.
You can choose if the action should append or prepend the content and if you want to add a text prefix (e.g. to add a todo or a bullet point to the daily note). If you want to use different prefixes, you can duplicate the action and configure and rename the duplicate accordingly.
[Configuration]
Before you can use the action you need to configure it depending on your setup in Obsidian and personal preference.
All configuration parameters are adapted in the „Define Template Tag“ steps in the Action. To change the configurations edit them to match your setup - don’t change the names of the template tags since the action won’t work anymore afterwards. The following parameters must be adapted:
obsidianVaultBookmarkName: the name of the folder bookmark that will be created to access the files in your vault (see the Drafts documentation for more information about Folder Bookmarks (https://docs.getdrafts.com/docs/settings/bookmarks)). When you run the Action the first time it should prompt you to select a folder for that bookmark. Default: Obsidian Vault
dateFormat: the date format of your daily notes in Obsidian. You need to use the Drafts specific notation documented here (https://docs.getdrafts.com/docs/actions/templates/drafts-templates#dates-and-times) Default: %Y-%m-%d which matches YYYY-MM-DD in Obsidian
dailyNotesFolderPath: the path where obsidian creates the daily notes (matches the setting for „New file location“ in the daily notes settings section). Default: empty
textAddPrefix: an optional prefix that will be prepended to the content of the Draft
textAddMode: you can choose if the action should prepend or append the draft to the daily note - only prepend or append are allowed. Default: append
IMPORTANT: If you‘re running the Action the first time and it shows an error that the file is not existing even when the file exists in Obsidian then please go into the Settings of Drafts, navigate to „Bookmarks“ and make sure that the configured bookmark name is not set to „-unknown-“. If it is set to Unknown then tap „Select Folder“ and navigate to your Obsidian Vault in the files UI, select it and tap „Done“ in the upper right corner.
[Usage]
The action directly accessed the files so Obsidian won’t be opened when adding something to the daily note. If you didn’t open obsidian on that day, the daily note file will not be created or synced into the folder. Make sure to open Obsidian on the device if you see the alert that the file is missing. This is to prevent sync issues and ensure that potential templates for daily notes are applied first.
Simply run the the Action to add the content of the current draft to your Daily Note in Obsidian. When you e.g. want to use the Action to add tasks to your Daily Note then you need to configure - [ ] as textAddPrefix. If you have different usecases, just duplicate the Action and configure it differently.
If you find this useful and want to support me you can
https://actions.getdrafts.com/a/2EO
created by @FlohGro (https://twitter.com/FlohGro) / more on my Website (http://www.flohgro.com/)
Add to Obsidian Daily Note
This action will add the contents of the current draft to the todays Daily Note in Obsidian.
You can choose if the action should append or prepend the content and if you want to add a text prefix (e.g. to add a todo or a bullet point to the daily note). If you want to use different prefixes, you can duplicate the action and configure and rename the duplicate accordingly.
[Configuration]
Before you can use the action you need to configure it depending on your setup in Obsidian and personal preference.
All configuration parameters are adapted in the „Define Template Tag“ steps in the Action. To change the configurations edit them to match your setup - don’t change the names of the template tags since the action won’t work anymore afterwards. The following parameters must be adapted:
obsidianVaultBookmarkName: the name of the folder bookmark that will be created to access the files in your vault (see the Drafts documentation for more information about Folder Bookmarks (https://docs.getdrafts.com/docs/settings/bookmarks)). When you run the Action the first time it should prompt you to select a folder for that bookmark. Default: Obsidian Vault
dateFormat: the date format of your daily notes in Obsidian. You need to use the Drafts specific notation documented here (https://docs.getdrafts.com/docs/actions/templates/drafts-templates#dates-and-times) Default: %Y-%m-%d which matches YYYY-MM-DD in Obsidian
dailyNotesFolderPath: the path where obsidian creates the daily notes (matches the setting for „New file location“ in the daily notes settings section). Default: empty
textAddPrefix: an optional prefix that will be prepended to the content of the Draft
textAddMode: you can choose if the action should prepend or append the draft to the daily note - only prepend or append are allowed. Default: append
IMPORTANT: If you‘re running the Action the first time and it shows an error that the file is not existing even when the file exists in Obsidian then please go into the Settings of Drafts, navigate to „Bookmarks“ and make sure that the configured bookmark name is not set to „-unknown-“. If it is set to Unknown then tap „Select Folder“ and navigate to your Obsidian Vault in the files UI, select it and tap „Done“ in the upper right corner.
[Usage]
The action directly accessed the files so Obsidian won’t be opened when adding something to the daily note. If you didn’t open obsidian on that day, the daily note file will not be created or synced into the folder. Make sure to open Obsidian on the device if you see the alert that the file is missing. This is to prevent sync issues and ensure that potential templates for daily notes are applied first.
Simply run the the Action to add the content of the current draft to your Daily Note in Obsidian. When you e.g. want to use the Action to add tasks to your Daily Note then you need to configure - [ ] as textAddPrefix. If you have different usecases, just duplicate the Action and configure it differently.
If you find this useful and want to support me you can
Posted by FlohGroInstall (drafts5://action?identifier=2EO&data=%7B%22uuid%22:%2238D957D8-D65D-4414-BE7B-F219290BAE3C%22,%22steps%22:%5B%7B%22platforms%22:3,%22data%22:%7B%22template%22:%22Obsidian%20Vault%22,%22name%22:%22obsidianVaultBookmarkName%22,%22templateType%22:%22legacy%22%7D,%22type%22:%22defineTemplateTag%22,%22isEnabled%22:true,%22uuid%22:%22E7331AB6-C22A-469C-B08F-194CDFF22B92%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22name%22:%22dateFormat%22,%22template%22:%22%25Y-%25m-%25d%22,%22templateType%22:%22legacy%22%7D,%22type%22:%22defineTemplateTag%22,%22isEnabled%22:true,%22uuid%22:%22A154AB12-F824-4B15-9B76-6D8FF311553F%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22name%22:%22dailyNotesFolderPath%22,%22template%22:%22%22,%22templateType%22:%22legacy%22%7D,%22type%22:%22defineTemplateTag%22,%22isEnabled%22:true,%22uuid%22:%22EC2F49E8-C747-4BDA-B94C-8A414D97CE01%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22name%22:%22textAddPrefix%22,%22template%22:%22%22,%22templateType%22:%22legacy%22%7D,%22type%22:%22defineTemplateTag%22,%22isEnabled%22:true,%22uuid%22:%22CF2C368A-0F06-4DCF-BC10-9E8160EF9572%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22name%22:%22textAddMode%22,%22template%22:%22append%22,%22templateType%22:%22legacy%22%7D,%22type%22:%22defineTemplateTag%22,%22isEnabled%22:true,%22uuid%22:%22ED60B798-CF54-41FF-9353-E7ABD01C00D1%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22script%22:%22//%20add%20to%20obsidian%20daily%20note%5Cn%5Cnconst%20obsidianVaultBookmarkName%20=%20draft.processTemplate(%5C%22%5B%5BobsidianVaultBookmarkName%5D%5D%5C%22)%5Cnconst%20dateFormat%20=%20draft.processTemplate(%5C%22%5B%5BdateFormat%5D%5D%5C%22);%5Cn%5Cnlet%20dailyNoteFileName%20=%20draft.processTemplate(%5C%22%5B%5Bdate%7C%5C%22%20+%20dateFormat%20+%20%5C%22%5D%5D%5C%22)%20+%20%5C%22.md%5C%22;%5Cn%5Cnlet%20dailyNotesFolderPath%20=%20draft.processTemplate(%5C%22%5B%5BdailyNotesFolderPath%5D%5D%5C%22)%20+%20%5C%22/%5C%22;%5Cn%5CndailyNoteFileName%20=%20dailyNotesFolderPath%20+%20dailyNoteFileName%20//%5C%222022%5C%5C.10%5C%5C.25.md%5C%22%5Cnlet%20bookmark%20=%20Bookmark.findOrCreate(obsidianVaultBookmarkName);%5Cn%5Cn%5Cnconst%20configEntryPrefix%20=%20%5C%22-%20%5C%22%5Cnconst%20textAddPrefix%20=%20draft.processTemplate(%5C%22%5B%5BtextAddPrefix%5D%5D%5C%22);%5Cnconst%20textAddMode%20=%20draft.processTemplate(%5C%22%5B%5BtextAddMode%5D%5D%5C%22);%5Cn%5Cnlet%20fm%20=%20FileManager.createForBookmark(bookmark);%5Cn%5Cnif%20(fm.exists(dailyNoteFileName))%20%7B%5Cn%20%20%20%20//%20file%20exists%5Cn%20%20%20%20let%20fileContent%20=%20fm.readString(dailyNoteFileName)%5Cn%20%20%20%20if%20(textAddMode%20==%20%5C%22append%5C%22)%20%7B%5Cn%20%20%20%20%20%20%20%20fileContent%20=%20fileContent%20+%20%5C%22%5C%5Cn%5C%22%20+%20textAddPrefix%20+%20draft.content%5Cn%20%20%20%20%7D%20else%20if%20(textAddMode%20==%20%5C%22prepend%5C%22)%20%7B%5Cn%20%20%20%20%20%20%20%20fileContent%20=%20textAddPrefix%20+%20draft.content%20+%20%5C%22%5C%5Cn%5C%22%20+%20fileContent%5Cn%20%20%20%20%7D%20else%20%7B%5Cn%20%20%20%20%20%20%20%20console.log(%5C%22invalid%20text%20add%20mode%5C%22)%5Cn%20%20%20%20%20%20%20%20alert(%5C%22invalid%20text%20add%20mode%20configured%20-%20only%20%5C%5C%5C%22append%5C%5C%5C%22%20or%20%5C%5C%5C%22prepend%5C%5C%5C%22%20are%20allowed%5C%22)%5Cn%20%20%20%20%20%20%20%20context.fail()%5Cn%20%20%20%20%7D%5Cn%20%20%20%20if%20(!fm.writeString(dailyNoteFileName,%20fileContent))%20%7B%5Cn%20%20%20%20%20%20%20%20console.log(%5C%22failed%20writing%20content%20to%20file%5C%22)%5Cn%20%20%20%20%20%20%20%20alert(%5C%22failed%20writing%20content%20to%20file%20-%20this%20should%20not%20happen.%20please%20contact%20FlohGro%20via%20Twitter%20or%20the%20Drafts%20Forum.%5C%22)%5Cn%20%20%20%20%20%20%20%20context.fail()%5Cn%20%20%20%20%7D%5Cn%5Cn%7D%20else%20%7B%5Cn%20%20%20%20//%20file%20does%20note%20exist%5Cn%20%20%20%20console.log(%5C%22daily%20notes%20file%20does%20not%20(yet)%20exist%5C%22)%5Cn%20%20%20%20alert(%5C%22daily%20notes%20file%20does%20not%20(yet