Editorial Workflows

Link Post

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Creates a new Markdown-formatted link post from the page currently open in the Editorial browser (selected text is formatted as a blockquote) and saves the file to Dropbox. If called by another app or bookmarklet using Editorial's URL scheme, uses links and text in the input and inserts into the document currently open in Editorial. Based on "New Linked" by @viticci.

Shared by: Brian Lennon

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
New Linked from Browser ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Browser Selection ?
Run the block if
Browser Selection
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
content
Value
[Browser Title](Browser URL) > Browser Selection
…End If
No Browser Selection ?
Run the block if
Browser Selection
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
content
Value
[Browser Title](Browser URL)
…End If
Generate Text ?
Text
Browser Title
Strip Punctuation ?
Source Code
#coding: utf-8
import string
import workflow

action_in = workflow.get_input()

#Generate the output...
action_out = reduce(lambda action_in, c: action_in.replace(c, ''), string.punctuation, action_in)

workflow.set_output(action_out)
Change Case ?
  • UPPER CASE
  • lower case
  • Title Case
Find / Replace ?
Find
\s
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
-
Prefix / Suffix Lines ?
  • Prefix
  • Suffix
Text
Year: 2001Month: 01Day: 01-N-
Set Variable ?
Variable Name
filename
Value
Input.md
Set Variable ?
Variable Name
filepath
Value
filename
Set File Contents ?
File Name
%var:filepath
In Dropbox
ON
New Text
content
If File Does Not Exist
  • Create
  • Stop Workflow
Generate Text ?
Text
filepath
URL Escape ?
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
editorial://open/Input?root=dropbox
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
ON
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
New Linked from App ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
content
Value
Input
Extract URLs ?
Output
  • Only URLs
  • URLs and Ranges (Separated by Tab)
Set Variable ?
Variable Name
link
Value
Input
Count ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
If Multiple Links In Selection ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
1
Generate Text ?
Text
link
Select from List ?
Title
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
ON
Set Variable ?
Variable Name
link
Value
Input
…End If
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
link
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
OFF
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Replace Selected Text ?
Replacement Text
content
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If