Editorial Workflows

NewFile from selection w links

public workflow

Install 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: Adapted from the new file workflow. To include creating a linked file from selected text in a file. Names the file with text and date/ time in directory with a link back to the first file.
Also puts a link to the new file in the first file. Has prompt to return back to first file.

Shared by: @macmanuk

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Get Bookmark URL ?
Include Selected Range
ON
Set Variable ?
Variable Name
doconeurl
Value
Input
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Request Text Input ?
Title
Filename?
Initial Text
lnkdoc-Input-Year: 2001Month: 01Day: 01-Minute: 01Hour: 01 (24h)
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
filename
Value
Input.md
Request Text Input ?
Title
Location
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
location
Value
/Input/
Set Variable ?
Variable Name
path
Value
locationfilename
Set File Contents ?
File Name
%var:path
In Dropbox
ON
New Text
Place Text Here
If File Does Not Exist
  • Create
  • Stop Workflow
Open Document ?
File Name
%var:path
In Dropbox
ON
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Replace Selected Text ?
Replacement Text
[linked from: ](doconeurl)
Get Bookmark URL ?
Include Selected Range
ON
Set Variable ?
Variable Name
doctwourl
Value
Input
Show Alert ?
Title
return to previous doc?
Message
Input
Button 1
OK
Output Value
y
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
return
Show Cancel Button
ON
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
y
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
doconeurl
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
Replace Selected Text ?
Replacement Text
[linked to](doctwourl)
…End If