Editorial Workflows

FindQuoteByWord

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: This workflow searches a "quotes.md" file for a keyword you provide and then displays a picklist to select from. The selected quote is then copied to your clipboard.

Shared by: daveterry

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
match
Value
Request Text Input ?
Title
Search a quote by keyword
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
keyword
Value
Input
Get File Contents ?
File Name
quotes.md
In Dropbox
OFF
If File Does Not Exist
  • Empty Output
  • Stop Workflow
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
Match Group
0 (entire match)
Reverse
OFF
Set Variable ?
Variable Name
quote
Value
Input
Find ?
Search for
keyword
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)
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0:0
Set Variable ?
Variable Name
match
Value
match quote
…End If
…End Repeat
Generate Text ?
Text
match
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Select from List ?
Title
Select the quote you want to use
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
OFF
Set Clipboard ?
Show HUD ?
HUD Text
Quote copied to clipboard
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"