Editorial Workflows

Go to Project...

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: Go to a specific project in a Taskpaper file.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
allText
Value
Input
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import re

text = workflow.get_variable('allText')
projects = re.findall(r'^[^-].*:$', text, re.M)
t = "".join(projects)

#TODO: Generate the output...
action_out = t.replace(":","\n").replace("\t","").replace("\n\n","\n")

workflow.set_output(action_out)
Select from List ?
Title
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
OFF
Set Variable ?
Variable Name
targetProject
Value
Input
Run Python Script ?
Source Code
#coding: utf-8
import workflow

targetProject = workflow.get_variable('targetProject')+':'
text = workflow.get_variable('allText')

theIndex = str(text.find(targetProject))

workflow.set_output(theIndex)
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1