Editorial Workflows

Convert to Ordered List

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: Converts the selected lines to an ordered (sequentially numbered) list.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
Match Group
0 (entire match)
Reverse
OFF
Find / Replace ?
Find
^(\d+\.|\*)\s+
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Math ?
Expression
Counter+1
On Error
  • Stop Workflow
  • Output "ERROR"
Result
  • Pass to Next Action
  • Store in Variable:
Counter
Generate Text ?
Text
Counter. Input
…End If
…End Repeat
Replace Selected Text ?
Replacement Text
Input
Count ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Select Range ?
Range (from:to)
Sel. Range: Start-Input:Sel. Range: End
Relative to
  • Entire Document
  • Current Selection