Editorial Workflows

Recently Added

Post to mico.blog

Based on jbwhaley’s [Pythonista script](https://gist.github.com/jbwhaley/126ddcd807bf5ff95909a78d863e1e6d#file-microblogger-py) this workflow takes the selected text, posts it to micro.blog, and archives the post in its own Markdown file.

Drafts

EOF

Moves caret to the end of document so I can add some text without scrolling.

Tweet via Twitter app

Alternative to the tweet sheet that was removed in iOS 11 (using the official Twitter app’s URL scheme).

Make Questions

search_files

Find the files that contain all the query words

Jekyll Publish (Working Copy)

Requirements for this workflow: * Working Copy This workflow creates the front matter for a Jekyll post and saves the file to a Git repository using Working Copy. It asks the user for tags to include into the front matter. My full setup I am using this in is explained at https://blog.neverthesamecolor.net/ipad-only-blogging/ The markdown document is scanned for image references and commits the referenced files from the “assets/“ folder to the repository. To use this workflow, change the key and repo variables to match the key and repo name in Working Copy.

Search Wikipedia

Searches Wikipedia for the selected word. If nothing is selected, a text input dialog is shown.

字数

SentenceCaseDoc

This workflow runs through your entire document and turns all sentences into Sentence Case. (Note: No need to select content first.)

SentenceCase

This workflow will turn your selected text into Sentence Case. (Note: Must select text before running the workflow.)

Fountain to PDF

Converts a Fountain screenplay to PDF, using the `screenplain` Python module. The result is shown in a browser tab.

Gaddgict Update Post Template

Redacted version of the Update Post workflow used to update an existing post on my site over SFTP.

Gaddgict Publish Workflow Template

Redacted version of the script I wrote to Publish a new post to my site.

Forward Delete

Simple workflow I wrote that mimics forward delete.

New OmniFocus Project

This Workflow accepts TaskPaper text with «placeholder» tokens and prompts for you to enter final values, then creates a project in OmniFocus 2.14 for iOS using those tokens. For example, given this input: - «project_name» @parallel(false) @due(«due») - This task needs to be done at least 1 week before «project_name» is due @due(«due» -1w) - This task needs to be done at least 2 days before «project_name» is due @due(«due» -2d) You'll be prompted to enter values for «project_name» and «due». If you enter "Phonewave 1.2" and "next Thursday", it will create a new "Phonewave 1.2" project in OmniFocus that is due next Thursday, and has two tasks already filled with due dates of this Thursday and next Tuesday.

Plain Text (.txt)

Shuffle List

Converts the current document to a list, with one item per line. Shuffles this list, then chooses k number of items per group and prints. Randomly draws an additional number of items as needed to complete group.

字数

Share...

Shows the iOS share sheet with the selected text as input. If nothing is selected, the entire document is shared. In a Markdown document, the text can optionally be converted to HTML first.

Working Copy

Workflow for transferring files from Working Copy to Editorial and back again. When called with input, it will pick the filename from the first line and write the other lines into this file, which lets Working Copy create a new file with predefined content. The filename contains a unique identifier for remembering where it belongs. To avoid overwriting files in Editorial by mistake, the previous contents of files are put in WorkingCopy.bak When this workflow is called without any input the contents of the current file is written back to Working Copy. Change askcommit variable to 0 if you just want to save and not be asked to commit. To install a new version of this workflow delete or rename this one and perform Edit in Editorial from Working Copy.

_RemoveWhitespace

Take a block of text and remove white space before, after as well as blank lines. Meant to be used by Workflow.app, it might work in other cases too.

Hugo Micro Compose

Hugo Compose

test

Move down v2

V2.1 (2017-09-27) Shifts selected text down one line. If no text selected, current line is selected by default. Started as a quick response to a forum request. Existing drag handles do something similar, but this allows movement of selected items to be attached to a keyboard shortcut— it works for me, but test it before using on anything mission critical. V2 checks for indent levels (Taskpaper)— if you're moving a line or selection of items between project headings, the selection should be correctly indented automatically. Selected text with project headings maintains whatever indent levels it starts with. Pair with workflow "Move up v2". + deselect text if nothing was selected in the first place Known flaw: doesn't currently retain variable indent levels between items in the same project (unless the project header or a line containing a # is included in the selection). Any other suggestions for improvement welcomed.

Move up v2

V2.1 (2017-09-27) Shifts selected text up one line. If no text selected, current line is selected by default. Started as a quick response to a forum request. Existing drag handles do something similar, but this allows movement of selected items to be attached to a keyboard shortcut— it works for me, but test it before using on anything mission critical. V2 checks for indent levels (Taskpaper)— if you're moving a line or selection of items between project headings, the selection should be correctly indented automatically. Selected text with project headings maintains whatever indent levels it starts with. Pair with workflow "Move down v2". + deselect text if nothing was selected in the first place Known flaw: doesn't currently retain variable indent levels between items in the same project (unless the project header or a line containing a # is included in the selection). Any other suggestions for improvement welcomed.

Hugo : New Post

Simple workflow to create frontmatter for a new Hugo blog post

ALL CAPS

Convert to PDF

Converts a Markdown or plain text document to PDF. The result is shown in a browser tab.

Daily Journal

Hugo Post, Working Copy (v1.1)

Creates a Hugo formatted document, saves to a local Git repository in Working Copy then commits & pushes it to the remote Git repository. How to use: This Workflow requires the document in Editorial to have been given a file name, and for the WorkingCopyApp.com to be installed and it to have 'Allow URL Actions' enabled in settings. The workflow requires some configuration before using - to do this the first three steps (highlighted in purple) should be set as follows: - 'key' matches the secret URL Callback key from App integration settings in the Working Copy App, - 'repo' matches the repository name of your Hugo site & - 'categories' matches your list of desired categories. Features: You can type a title of Hugo post & description, which default to match the filename, select categories, tags & set a featured image (which will be displayed on the website if your Hugo theme supports it).

Log

Share...

Shows the iOS share sheet with the selected text as input. If nothing is selected, the entire document is shared. In a Markdown document, the text can optionally be converted to HTML first.

插入图片...

自行在当前文本目录下创建img文件夹,保存图片在img目录下通过workflow选择插入图片。

插入URL...

插入url

New OmniFocus Project

This Workflow accepts TaskPaper text with «placeholder» tokens and prompts for you to enter final values, then creates a project in OmniFocus 2.14 for iOS using those tokens. For example, given this input: - «project_name» @parallel(false) @due(«due») - This task needs to be done at least 1 week before «project_name» is due @due(«due» -1w) - This task needs to be done at least 2 days before «project_name» is due @due(«due» -2d) You'll be prompted to enter values for «project_name» and «due». If you enter "Phonewave 1.2" and "next Thursday", it will create a new "Phonewave 1.2" project in OmniFocus that is due next Thursday, and has two tasks already filled with due dates of this Thursday and next Tuesday.

Create post

Open multiple URLs

I recently decided that it would be useful to open a number of websites at once for research purposes. Seems Safari iOS doesn't have this functionality built in, so here's a simple workflow that gets all of the URLs in your current document and opens them in new tabs in Editorial's browser.

pdfe2md

for use with Workflow & PDF Expert. Converts a PDF Expert Annotation Summary to Markdown

Ph:Arrange

(This is a slightly modified version of a workflow by agiletortoise. Unlike the original, it doesn't require a second workflow to be installed, the callback from Phraseology is handled by the same workflow) Send selected text to Phraseology to arrange lines and sentences. For details, visit help.agiletortoise.com. Requires Phraseology 2.0.

Ph:Inspect

Send selected text to Phraseology to inspect. This will display statistical information about the text. For details, visit help.agiletortoise.com. Requires Phraseology 2.0.

Find and Replace RegEx

Reference workflow for doing simple RegEx find/replace operations.

Send to Drafts

Sends the current document to Drafts 4.

Insert Footnote...

Inserts a Markdown footnote (including its definition) without changing the current cursor position. Footnotes are numbered sequentially, based on existing footnotes in the document.

Send to DevonThink

Shares the content of the file with DEVONthink. If a selection exists, shares only the selection.

Upload & Insert Relative Image

Modified from [Upload & Insert Image](http://www.editorial-workflows.com/workflow/5890337931264000/qI0pAzIk4Y0). The folder creation was inspired by [Bible 2](http://www.editorial-workflows.com/workflow/5814178497429504/icZSMb6REcs) - Change the markdown reference to a relative one for better portability. - Use shortcut `iii` - Save to the folder "resources" (automatically created)

Copy Prev Register

If I am on a school trip, I sometimes need a register of pupils. This lets me take a list of names in taskpaper format, quickly make a new list, then update it if needed (most times, no change!) I automatically get a new file for every registration. This could be used for any repeated checklist. If you want a fresh list each time, save an unchecked file and run the template on that

Copy File with Timestamp

This duplicates the current file, adding a time stamp.

Speech

This workflow will make your device read your text out loud starting from the current cursor position until the end of the text. If an area of the text is selected it will read the selected text instead. Activating the workflow again before it has finished will stop the reading. Some known markdown comment conventions will be ignored. Namely Ulysses (%% , ++ and ||), Notebooks (//) and html (). See respective documentations for details of proper usage. It is handy to associate option-S, or a shortcut key combination of your preference, for easy starting and stopping of speech. The reading speed is slightly faster than "normal". The default language on the device will be used. The workflow is designed to be a proofreading tool.

Convert to PDF

Converts a Markdown or plain text document to PDF. The result is shown in a browser tab.

Lucky Link

Replaces the selected word(s) with a Markdown link, pointing to the first Google result. E.g. when you select "Markdown", it is replaced with "[Markdown](http://daringfireball.net/projects/markdown)".

Export PDF

Export markdown to PDF using custom CSS settings

Convert to Ordered List

Converts the selected lines to an ordered (sequentially numbered) list.

Convert to Unordered List

Converts the selected lines to an unordered (bulleted) list.

Jekyll post, Working Copy(rev)

A few modifications from Anders Borum's workflow. Create a Jekyll post and save this in a Git repository in Working Copy. Workflow requires WorkingCopyApp.com to be installed. You will need to change the two first actions such that key matches the secret URL Callback key from Working Copy settings and repo matches the repository name of your Jekyll blog. You can type a title of Jekyll post and tags. Url escape is applied to the file name.

KT: Send Jekyll Post using Working Copy

This workflow creates a Jekyll post and saves it to a Git repository using Working Copy. It prompts you for the post title, category, and tags to include in the Jekyll front matter. To use this workflow, change the key and repo variables to match the key and repo name in Working Copy. The key must match the URL key found in Working Copy's Settings > App Integrations section. Working Copy must be installed to use this workflow. https://workingcopyapp.com

KT: Send micropost using Working Copy

This is a sample workflow I use to send a micropost to thecave.com. It creates a Jekyll post and saves it to a Git repository using Working Copy. It prompts you for the post title, category, and additional tags to include in the Jekyll front matter. The workflow includes the tag "micropost" automatically. To use this workflow, change the key and repo variables to match the key and repo name in Working Copy. The key must match the URL key found in Working Copy's Settings > App Integrations section. Working Copy must be installed to use this workflow. https://workingcopyapp.com

Next Actions

This script: 1. Opens /Dropbox/Task Management/Next Actions.taskpaper 2. Removes any occurences of @start(YYYY-MM-DD) from this file, where YYYY-MM-DD is on or before today 3. Folds all lines containing @start(YYYY-MM-DD), where YYYY-MM-DD is a future date Another script of mine, "Custom Classes and Functions", must be installed for this to work. Copyright (c) 2017 Duncan MacIntyre Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Custom Classes and Functions

This script is used as a sub-workflow by some of my others. It must be installed for them to work properly. Copyright (c) 2017 Duncan MacIntyre Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Insert Image...

Saves an image from the camera roll as a jpeg file in the relatively 'resources' directory, and inserts a markdown image reference,using current time. you can change the label 'yypE' into anything you want.

FoldParagraphsExcept

Bible 2

A bible app Thanks dgelessus! Updated for editorial 1.3 (code for 1.2 is comemented) It's the selected chapter line. Converted from my pythonista version. This is not complete yet but it willl be. You will need the database file in the GitHub from here: https://github.com/TutorialDoctor/The-Bible-App Use my Github Get workflow to download the github repo and move the bible.db file to the Documents folder. Now with Light and Dark themes!

Go to Project...

Go to a specific project in a Taskpaper file.

Select Tag...

For use with Taskpaper documents. Displays a drop-down list of tags in the document, and copies the selected tag to the clipboard, ready for pasting into Editorial's search field.

Mark Due

Designed for use with Taskpaper files. Insert a @due(yyyy-mm-dd) tag at the current cursor location. Opens an input box with the current year and month auto-filled and the cursor ready to type the day.

Tag as done

For use with Taskpaper files. Insert a @done(yyyy-mm-dd) tag at the current cursor location, pre-filled with the current date & time.

Selection to Fantastical

Sends the selection to Fantastical, converting TaskPaper @due(YYYY-MM-DD) tags to plain text for Fantastical to parse as a Reminder

Sort by @due

Sort selected text by the dates in @due(YYYY-MM-DD) tags. Made for use with TaskPaper files.

Papers 3 Universal CiteKey

Papers 3 Universal CiteKey Cody Wu (cody.wu@ualberta.ca) Description: Papers 3 utilizes what they call a "Universal CiteKey" generated from the DOI. This is replaced and formatted by the Papers 3 desktop app when you generate the bibliography. While this is fine on the desktop, the iOS Papers application does not generate the CiteKey in the same format making cross-platform work/collaboration exceptionally difficult. This workflow takes the full reference from Papers 3's "Copy Reference" export option and generates/inserts the Universal CiteKey. Notes: I recommend that you map the workflow to a keyboard shortcut to allow for easy insertion of references.

Insert Journal date

Top

Bottom

Taskpapr Global Tag Search

Searches every file in the current directory for hashtags and then presents a list. Upon selecting a hashtag, a global search is performed and results are presented in the preview window. Inspired by http://1writerapp.com and uses code from Editorials Global Search. Workflow by Pedro Lobo (http://plobo.net)

city_pm

prepend nikola header

Prepends a Nikola-formatted metadata header to the top of the current document. If one already exists then the date is refreshed.

Export PDF

Export markdown to PDF using custom CSS settings

Journal

Create a new journal entry with time stamp and location. The time stamp is currently hard coded to a zone selection list until I need to auto detect it based on location or something. Time zones are hard.

Fold projects without tag

Solution for https://forum.omz-software.com/topic/3845/workflow-to-fold-all-unfold-specific-headers-with-their-contents Folds projects/headers and their contents/text if the project/header doesn't contain the selected tag.

Insert NWS Nearest Current Weather Conditions

This very quick hack finds the nearest National Weather Service (USA) station, then pulls current conditions from that station, and inserts data at the current cursor position. This may be useful for journaling in Editorial.

Search sspai

搜索少数派网站(sspai.com)上的文章。选中文字后,直接运行动作,就会搜索选中的文字。如果没有选中文字,就会弹出一个输入框让你输入后再进行搜索。

Browser Link

选中文字后,以 Markdown 格式插入浏览器链接。

Search

搜索选中的文字。如果没选中文字,则弹出输入框输入后再进行搜索。

Hide @done

Filter for tags

Convert to Ordered List

Converts the selected lines to an ordered (sequentially numbered) list.

Unhide all rows

.xyz

Sort Entire Document

Workflow will automaticallly select the entire document and sort each line alphabetically.

Jekyll with UUID

Sets YAML Front Matter for a Jekyll blog with UUID. Based on earlier work by hackerinterrupted.com, edited for my needs.

Paste URL

Paste a URL in markdown format. If you selected some text, the text becomes the link text; if not, it inserts a blank line as the link text

Paste Blockquote

Paste a block quote in markdown format

List URLs...

Shows a list of URLs in the current document. Selecting one of the URLs opens it in the browser panel.

List URLs...

Shows a list of URLs in the current document. Selecting one of the URLs opens it in the browser panel.

Save Photo Copy

Takes first image from the clipboard and saves to document directory using the current document's filename and saving as a jpg. Inserts an tag and sets the width. The width default is 640px and the height is set to aspect ratio.

Visual Find & Replace

Fixed some crash issue. Enjoy! This workflow uses the UI module to allow you to do a find & replace throughout your selected text or the entire document if no text is selected. The UI was designed to work on both the iPhone and the iPad. Options include: * Text or Regular Expression * Case-sensitive searches * Preview panel to make sure you're replacing what you want to replace (especially helpful for regex). This was adapted from the built-in Diff with Clipboard workflow. If you have any suggestions, find any bugs, or want to see my other workflows for Editorial, please visit http://sweetnessoffreedom.wordpress.com/projects

WebDAVDir

Workflow to read files from a webdav directory and send them back again (if required after making changes). It should handle the file types supported by Editorial, but up to a point also the (emacs) org type. It does so by converting the org format to markdown upon reading and converting it from markdown back to org upon writing. Note that this md / org conversion is just a hack and can/will mess up your org files. To make this flow work at all, you will have to edit the parameters in the marked (red) workflow step, to hold your personal webdav settings.

Calculator

A simple, Python-based calculator UI.

TestInsert

This seems to illustrate a bug with UI buttons in Editorial 1.3.2

Editorial Backup

Fixed an issue with "ZIP does not support timestamps before 1980" Enjoy! Saves or restores a backup of all Editorial workflows, snippets, bookmarks, and local documents as a zip file in Dropbox (this requires the Dropbox account to be linked). Please note: If you want to restore a backup on a different device, you first have to download the backup file (just tap on it in the document list). This is required because Editorial doesn't sync zip files by default. Restoring a backup will *overwrite* all existing workflows, snippets, and bookmarks, so it's possible that you'll lose data this way. The best way to avoid any data loss is to create a backup before restoring anything.

Bobbi

Is this fun or what? Easily make a simple website and host it from a free Dropbox account. This workflow creates a website like a one-page blog - it takes the markdown files in a Dropbox folder, joins them together (newest first), converts to html and writes it to the same Dropbox folder. Then you can share the link to your website. Then, hack this to a one-page-per-file website, or a one-page-one-file website. Inspired by Nicoletta (Python) by Roberto Alsina, king of the short piece of quirky code, and named for him.

ACKS Char

Create random characters for ACKS.