# Editorial Workflows

## 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.

## 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

## 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

## List URLs...

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

## 七牛图床

1、利用七牛免费空间作为图床，选择相册图片一键上传并插入地址到当前文档光标位置。 2、使用前先先在自定义参数脚本内按说明填入你的七牛域名、空间名、AK密匙、SK密匙。 3、请在打开任何一个文档的情况下运行。

## numbers csv to md table

csv file from Numbers --> md table --> insert into current md doc --> pdf with internal and external table borders

## Print Org TODOs

Scan org files for lines containing todo keywords. Create an on-the-go todo list.

## csv_to_md_table

A workflow for converting csv tables --> markdown tables --> HTML tables with borders --> PDF.

## Decrypt Selected Text

Workflow to decrypt selected text in a document. (A Encrypt Selected Text complement workflow.) If no text is selected an alert is displayed and the workflow stops. Based on Decrypt Document workflow.

## Encrypt Selected Text

Workflow to encrypt selected text in a document. Use Decrypt Selected Text to reverse the process. If no text is selected an alert is displayed and the workflow stops. Based on Encrypt Document workflow. (2017.04.05 added double entry password and exit on no match.)

https://forum.omz-software.com/topic/3931/beginner-custom-ui-how-to-get-the-python-script

## Search Amazon

Allows you to search for [input] on Amazon

## Smart Bold

A workflow best used with an external keyboard. When run with a keyboard shortcut it either: makes the selected text bold, or if there is no text selection it inserts bold operators into the document with the cursor/caret placed between them for easy entry of text.

## Open in...

Shows the "Open in..." menu for the current document.

## Visual Find & Replace

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

## Insert MD-Table

This Editoral-WF inserts a MD-table template. It prompts the user to either specify a number of columns e.g 4 or a sequence of L, C or R to specify L(eft), C(enterd) or R(ight) alignment, e.g LLCR. The WF prompts the user also for the number of rows. The table will contain placeholders which can easily be selected for editing by double tapping.

## Pandoc

Sends the Markdown, HTML, or LaTeX text that is currently in the editor to the web service Docverter for conversion into Markdown, HTML, LaTeX, PDF, EPUB, or even DOCX. Allows users to turn on several options for Docverter, which uses Pandoc for text conversion. For Markdown, HTML, and LaTeX output, users can choose whether to replace the editor text with the converted text or to place the converted text onto the clipboard. For file output, the workflow will prompt the user to open the returned PDF, EPUB, or DOCX file in an appropriate app. By configuring the red actions in the workflow, users can create custom CSS styles for PDF output can be defined in workflow action and specify a folder where the workflow can look for files referenced by Docverter arguments that require files, such as "template." Requires Editorial 1.1.1. Please report bugs on Twitter.

## TOC/FLOW Preview

Add flowchart support. Any problem can send mail to me. jerry@jerry-chan.com

## Preview with Math

Render MathJax equations in Multimarkdown preview. You can customize the css since it's available as a variable. The default css is the Editorial one.

## library-module-for-editorial

Easy Workflow by @ccc for downloading modules directly into Editorial at ~/Documents/site-packages. See forum discussion for further information: https://forum.omz-software.com/topic/3921/library-module-for-editorial-via-pythonista/17

## 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.

## Create link to current file

Creates a markdown link to the current file Note: The link will only work in Editorial

Persistent storage of Editorial variables... Opens a yaml file and does workflow.set_variable() on each key, value pair

## Write yaml

Persistent storage of Editorial variables... Take the current value of several Editorial variables and write them to a yaml file.

## Is A Minor

Assumes that Set Variable 'age' has already been done in the workflow. Returns 'true' if age < 18, 'false' if age >= 18, or 'unknown' if age not defined or has bad characters.

## Net Bible

Online Bible API in a Custom Action.

## My Workflow 1

Filling in variables similar to a form letter

## Form Letter

Demonstrate substitution using Python str.format(**dict). Create a .md file with the following template text: '''Therapy session on {session_date} with {first_name} {last_name}: On {session_date:%B %d, %Y}, Nikki Schwartz had therapy session with {first_name} {last_name} who is a {age} year old {sex} suffering from {issues}.''' Make sure that is the current document in Editorial and then run this workflow.

## Webpage to Markdown

This powerful workflow combines my "Grab HTML" workflow with the 'HTML to Markdown" Custom Action I posted, to automatically generate a markdown document from the current page loaded in the built-in web browser. Thanks to Aaron Swartz. Note: I don't know where in the code to get rid of the console input. Any tips?

## survey

Prompt for bible reference, insert logosres reference as Markdown formatted link, and jump to reference in Logos bible software

Find logosres link on current line and jump to reference in Logos bible software.

## Focus on due date...

After selecting a date, only tasks that contain the @due tag for this date are shown, everything else is hidden (folded).

## Focus on due date...

After selecting a date, only tasks that contain the @due tag for this date are shown, everything else is hidden (folded).

## DDSync

Useful if you have folder trigger on sync data that creates some content such as (PlantUML to generate diagram). This script does a sync of Dropbox twice at an interval of 5 seconds.

## 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.

## View Images

This workflow gives the ability to show associated pictures within the same directory with @image tag (particularly usefull in taskpaper documents). How to use : Example @image(name_of_image.png) The name can take all alphanumeric characters and the extension can be jpg or png.

## OmniFocus - Church

Takes selected or inputted text as search terms and executes either a Google search or a search for legal precedent in Google Scholar (user chooses which), and displays search results in Editorial's browser.

## Lucky

This displays top hit of a DuckDuckGo search using selected or inputted text for the search terms.

## Lucky Scholar

Takes selected text or inputted search terms and displays top hit of corresponding Google Scholar case law search. If input is a full case cite, it will take the reporter cite as its search terms. Alter as necessary.

## Lido2AvenzaMaps+

Generates KML for Avenza Maps V1.1.5 - plot route using segments to avoid display problems

## FTP_Client

This is a custom UI for Editorial which will present a fully featured FTP client in a popup window over the editor. After downloading you will need to tap the Info button next to the workflow, go to the Edit Workflow page, tap on the action block to expand it, and fill in your FTP login credentials in the variables below. Once you've done that just run it from the workflow menu and you should be set.

## Insert Text

A quick custom action to insert text at the caret. Should be an included action. Uses editor.insert_text()

## Auto Numbered Footnote

Inserts a Markdown footnote without changing the current cursor position. The footnote tag is auto generated based on current date/time stamp to ensure there is no overlap with other tags for sites using the Bigfoot.js plugin. Footnotes are are placed sequentially, based on existing footnotes in the document. Based on original 'Insert Footnote...' work flow.

## MD_Title_Block

Creates a title block for a Markdown file that can be posted to Pelican and most other static site generator packages. Will auto fill current/date for date of post/file creation.

## 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.

## Lido2Gramet+

V1.1.3 - compatible Editorial 1.3 V1.1.0 - Ajout des SIGMETs ---- Ce workflow est lancé à partir de Workflow App. Il affiche le gramet pour un OFP au format PDF, il peut aussi générer le .kml pour Mapsme. Ce workflow installe le module editolido.

## Lido2Mapsme+

Version 1.1.3 - compatible Editorial 1.3 Version 1.1.0 - suppression de la route Ogimet Version 1.0.1 - nécessité de supprimer le dossier site-package pour les utilisateurs des bêta précédentes. - nécessité de relancer Python en redémarrant Editorial avant de lancer ce workflow (toujours pour les utilisateurs des bêta précédentes) - futures mise à jours du module editolido automatique - affichage possible de la route du dégagement - correction des bugs connus sur les OFP signalés Version 1.0.0b7 - gestion du nouveau format de message des tracks. Version 1.0.0b5 - corrige coordonnées rlat des tracks - timeout modifié, montre http status en cas d'erreur - plus d'infos dans les logs Permet à partir de l'OFP Lido de tracer dans Mapsme: - route - ortho - les NATS - la route ogimet A l'issue du workflow, le clipboard contient la route mPilot. Ce workflow s'utilise à partir du workflow Du même nom de l'app Workflow.

I use Hugo and GitLab Pages for my website. On iOS, I use Working Copy and Editorial to write posts. This workflow streamlines adding metadata (TOML format) to the posts. It assumes you have created the file in Working Copy with the file name as the title of the post (hyphens in file name where spaces will go in the post's title.)

Very simple workflow to collapse all the Headings (single #) in the current document. The format to match is that the # must be at the beginning of a line followed by a single space.

## Lido2Gramet+

V1.1.3 - compatible Editorial 1.3 V1.1.0 - Ajout des SIGMETs ---- Ce workflow est lancé à partir de Workflow App. Il affiche le gramet pour un OFP au format PDF, il peut aussi générer le .kml pour Mapsme. Ce workflow installe le module editolido.

## Lido2Mapsme+

Version 1.1.3 - compatible Editorial 1.3 Version 1.1.0 - suppression de la route Ogimet Version 1.0.1 - nécessité de supprimer le dossier site-package pour les utilisateurs des bêta précédentes. - nécessité de relancer Python en redémarrant Editorial avant de lancer ce workflow (toujours pour les utilisateurs des bêta précédentes) - futures mise à jours du module editolido automatique - affichage possible de la route du dégagement - correction des bugs connus sur les OFP signalés Version 1.0.0b7 - gestion du nouveau format de message des tracks. Version 1.0.0b5 - corrige coordonnées rlat des tracks - timeout modifié, montre http status en cas d'erreur - plus d'infos dans les logs Permet à partir de l'OFP Lido de tracer dans Mapsme: - route - ortho - les NATS - la route ogimet A l'issue du workflow, le clipboard contient la route mPilot. Ce workflow s'utilise à partir du workflow Du même nom de l'app Workflow.

## Tags

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)

## ASCII Punctuation

Gets rid of non-ascii punctuation (“”—•‘’…−), replaces with ascii equivalents (the dot turns into a hyphen). Mainly to keep stuff from breaking when moving from, e.g., Microsoft word to HTML, without having to muck around with encoding. Not guaranteed to work with all input encodings, but I haven't managed to break it yet. EXAMPLE INPUT: This has some “st—up•id ‘char−acters’, in its’ string…” EXAMPLE OUTPUT: This has some "st-up-id 'char-acters', in its' string..."

## cleanup line breaks in all

Take a text with line breaks within paragraphs (e.g. OCRed, converted from something, badly copy-pasted) and get rid of them. Also put space between all paragraphs rather than tab at start.

Call from Drafts to insert a list into proper project heading in taskpaper file.

## Create DayOne Entry from Template

1. Generate a title then prompt to edit it. 2. Clip template text from "Journal Entry Template.md". 3. Create an entry in DayOne with the title and template text. I use this template: How to Become More Consistent in Your Daily Journaling http://michaelhyatt.com/daily-journal-template.html

- Prompt for image selection from the camera roll. - Save selection as as a jpeg. - The image is saved in a sub folder relative to current folder. (Default is 'imgs', you may change it) - Preserve the original image orientation. - Insert a markdown image reference. **Credits** I forked and modified the plugins from the following two workflows which either didn't have the relative folder feature or did not working for me(infinite running). [Insert Photo...](http://www.editorial-workflows.com/workflow/5848481730134016/Qi3BQOLzpGY#) [insert_image](http://www.editorial-workflows.com/workflow/5793629092184064/Jb-MjQh1u6c) https://github.com/winddweb

## Copy All Text

Copies all text in the selected document to the clipboard, optionally converting Markdown to HTML.

## Arrange Paragraphs

Arrange markdown paragraphs.

## JekyllFromWorkflow

This workflow, when combined with my "Safari -> Editorial (Jekyll blog)" Workflow.app workflow, permits sending a selection of text from Safari to a Jekyll blog post in Editorial, auto-configured with front matter and filename. Combined with the github publishing Editorial workflows, this creates a streamlined process for publishing to Jekyll.

## Archive @done

Moves @done tasks in a TaskPaper document to the "Archive" project (created if necessary). If a task is in a project, a @project(name) tag is appended automatically. Note that this ignores indentation and doesn't handle sub-projects though.

## Focus on Tag...

After picking a tag from the list of tags in the current document, only tasks that contain this tag are shown, everything else is hidden (folded).

## Shuffle Lines

Shuffles the order of selected lines in the editor.

## Custom Font

Experimental workflow for using system fonts that don't show up in Editorial's settings. PLEASE READ THE INSTRUCTIONS AND WARNINGS CAREFULLY (shown when running the workflow). Requires Editorial 1.3

## Search Infogalactic

Search Infogalactic, the improved online encyclopaedia

## Send to Clear

Sends TaskPaper documents to Clear via x-callback-url.

## Convert to PDF

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

## Create OmniFocus project

Create a new OmniFocus project based on a TaskPaper document. Prompts for a title and date, which are then substitutes where «title» and «due» occur in your document. The workflow will search for @tags and display a configuration dialog asking which tags to include. If your task includes a @tag, it will only be sent to OmniFocus if you enable it. This allows you to maintain a master template, and filter tasks based on the specifics of your project. Tasks without any tag will always be included. Last updated: 2017-01-06 Author: sam@sargeant.net.nz

## 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.

## Editorial Backup

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.

## 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.

## Bible

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 you documents from here: https://github.com/TutorialDoctor/The-Bible-App You can use the Dropbox to Local workflow to copy it from Dropbox to you local documents. Update: You can use my internet file downloaded to download the database. Much easier. Or the downloader workflow. http://www.editorial-workflows.com/workflow/5840117952413696/GLisSkT2Fw8 http://www.editorial-workflows.com/workflow/5816340610809856/_xnIBHpH4Ag

## Dropbox to Local

Copy a Dropbox file by name to your local documents using this custom action. Note: you must enter the name into the "File Name" field. Useful for SQLite db files or large files that may crash Editorial when trying to copy manually.

## Prettify HTML

Prettifies the contents of the current HTML document. Assumes the current file is HTML

## Delete Current Line

This workflow lets you add a bookmark icon for an Editorial document to the iOS home screen. The workflow automatically opens Safari with additional instructions for adding the icon (which must happen manually; there is no way to automate this step). If you don't like the default icon, you can customize it by editing the workflow – simply change the value in the first ("Custom Icon URL") action. The home screen icons created with this method are actually just special web bookmarks that redirect to the Editorial app. This is the only supported way of adding custom home screen icons. Unfortunately, this method has the side effect of leaving some clutter in the app switcher, and you'll briefly see a blank screen before Editorial is opened.

## Highlighter

This workflow highlights user-specified text and styles it with a specified color and background color. This workflow uses CSS to format markdown text. Feel free to edit. Download the "Render to Pdf" workflow to save the formatted markdown file as a pdf.

## Text Colour

Select the text first and then select to change colour/highlight

## TT Case

Uses the TextTool application (which you require for the workflow to work) to change the case of the seleted text. You are given the choice to change to 'upper, lower, sentence or word' case. This workflow automatically populates the clipboard with the result so using the paste clipboard action (shortcut - 'ppp') is the easiest way populate the results of the workflow.

Get a list of your Instapaper bookmarks (articles), select one and download it as markdown for convenient reading in Editorial - Preview Markdown. Bloated Instapaper app is no longer required. Credit to other workflows that I have relied upon. [Download fails for some articles - paywalls, certificates etc.]

## Te: Replace

Ameliorate (just discovered this fancy word) your writing! Seduce her with your prolific vocabulary. Replaces selected word {closest to cursor} with corresponding synonym chosen from Terminology

## Dictionary

Check definition of word adjacent to cursor in system dictionary.

## Decrypt

Decrypt document (AES) using PyCrypto. Keep your notes/text/messages secure.

## Encrypt

Encrypt document (AES) using PyCrypto. Keep your notes/messages/text secure.

## Sermon Notes

Sermon Notes, simple and formatted with markdown

## Undone all

This workflow undone all stuff in the taskpaper document. Usefull for the checklists.

## Comment/Uncomment

This workflow toggles selected text between commented and uncommented html. It wraps and unwraps the text with "" tabs. The resulting line is then selected in the editor.