Editorial Workflows

Bug Links

unlisted 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: Finds all bug references and insert hyperlinks to their Bugzilla page.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
Text
Value
Input
For Each Bug Mentioned ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
(?<!\[)\b[Bb]ug\s\d+\b(?!\])
Match Group
0 (entire match)
Reverse
ON
Extract the Bug # ?
Range (from:to)
4:
Set Variable ?
Variable Name
Number
Value
Input
Select Bug ?
Range (from:to)
%repeat:range
Relative to
  • Entire Document
  • Current Selection
Replace with Bug Link ?
Replacement Text
[%repeat:text](http://bugs.com/show_bug.cgi?=Number "%repeat:text")
…End Repeat
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
Show HUD ?
HUD Text
No Bugs Found
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped