Editorial Workflows

TaskPaper

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: Call from Drafts to insert a list into proper project heading in taskpaper file.

Shared by: @matthew__dunlap

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
Draft
Value
Input
Generate Text ?
Text
Draft
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
(^.*)(:)$
Match Group
1
Reverse
OFF
Document Text ?
Folded Text
  • Include
  • Replace with:
Find ?
Search for
%repeat:text:$
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Project was found... ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0:0
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Generate Text ?
Text
Draft
Find ?
Search for
(?s)%repeat:text:\n(((?!\w+:\n).)*)
Match Group (RegEx)
1
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Replace Selected Text ?
Replacement Text
Selected Text Input
…End If
Peoject was NOT found ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0:0
Generate Text ?
Text
Draft
Find ?
Search for
(?s)%repeat:text:\n(((?!\w+:\n).)*)
Match Group (RegEx)
1
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Replace Selected Text ?
Replacement Text
%repeat:text: Input
…End If
…End Repeat