Editorial Workflows

Select Tag...

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: For use with Taskpaper documents. Displays a drop-down list of tags in the document, and copies the selected tag to the clipboard, ready for pasting into Editorial's search field.

Comments: Comment Feed (RSS)

Graham — 27 Apr
I'm not getting any tags in the tag list.

+ 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')
tags = set(re.findall(r'@[\w]+[( ]', text, re.M))
tagList = list(tags)
tagList.sort()
t = "\n".join(tagList)
t = t.replace("(","").replace(" ","")

workflow.set_output(t)
Select from List ?
Title
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
OFF
Set Variable ?
Variable Name
targetTag
Value
Input
Set Clipboard ?