Editorial Workflows

UI Outline

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: This workflow uses a Custom UI action to generate an outline into a table view from sections in the current document, and allows you to reorder each section.

Changing the regular expression search pattern will allow you to fill the outline with whatever content you wish.

Useful for Taskpaper lists, and can be adapted for iPhone easily.

Update: Saturday September 13, 2014 3:54:02 PM
- Now Preseves spacing for plain text, but adds double spaces for Taskpaper.

Shared by: Tutorial Doctor

Comments: Comment Feed (RSS)

Macmanuk — 12 Sep 2014
That's a really powerful workflow great for moving items quickly and getting an overview. Thanks a bunch for this.
mj — 12 Sep 2014
It's cool, can be very helpful, but it doesn't preserve empty lines between headings and/or paragraphs.
Tutorial Doctor — 13 Sep 2014
Yeah. I am working on preserving the empty lines. I think I might have to edit the regular expression.
Tutorial Doctor — 13 Sep 2014
It now Preseves spaces. If you have any issues, let me know.
anonymous — 10 Jul 2015
You said this could be adapted to work for iPhone. Can you explain how? Thank you!

+ Add Comment

Workflow Preview
Comment ?
Text
By the Tutorial Doctor
UI Outline ?
Run the block if
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Variable ?
Variable Name
file
Value
File Name.File Extension
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Document Text ?
Folded Text
  • Include
  • Replace with:
Find Pattern ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
^.+
Match Group
0 (entire match)
Reverse
OFF
Generate Text ?
Text
%repeat:text
…End Repeat
Store Pattern ?
Variable Name
pattern
Value
Input
Custom UI ?
User Interface
Presentation Style
  • Sheet
  • Full-Screen
  • Popover
Output
%ui:tableview1
Use Editor Theme
ON
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Store New List ?
Variable Name
newList
Value
Input
Task update ?
Run the block if
file
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
taskpaper
Update spacing ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
.+
Match Group
0 (entire match)
Reverse
OFF
Replace Selected Text ?
Replacement Text
%repeat:text
…End Repeat
…End If
Txt update ?
Run the block if
file
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
txt
Update spacing ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
.+
Match Group
0 (entire match)
Reverse
OFF
Replace Selected Text ?
Replacement Text
%repeat:text
…End Repeat
…End If
Markdown Update ?
Run the block if
file
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
md
Update spacing ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
.+
Match Group
0 (entire match)
Reverse
OFF
Replace Selected Text ?
Replacement Text
%repeat:text
…End Repeat
…End If
…End If
Move Caret to Top ?
Range (from:to)
0:0
Relative to
  • Entire Document
  • Current Selection