Editorial Workflows

Browser Append To H2-H6

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: Appends the browser title, URL, and selection with the QuoteLink format.

A regex filters lines that are header IDs from H2 to H6. A popover presents the filtered IDs. Cursor position is restored at the end.

If no header is found, returns error.

Shared by: @viticci

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
append
Value
[Browser Title](Browser URL){Browser Selection}
Document Text ?
Folded Text
  • Include
  • Replace with:
Filter Lines ?
Output Lines That
  • Contain
  • Don't Contain
  • Match Regular Expression:
^#{2,6}\s([^#].+?)$
Output Format
  • Only Lines
  • Lines and Ranges
Append Text ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Select from List ?
Title
Headers
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
ON
Set Variable ?
Variable Name
listout
Value
Input
If… ?
Run the block if
Browser URL
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No URL!
…End If
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
If… ?
Run the block if
Browser Selection
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
append
Value
[Browser Title](Browser URL)
…End If
Replace Selected Text ?
Replacement Text
Selected Text append
Show HUD ?
HUD Text
Text appended
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
Stop for No Headers Found ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No Headers Found
…End If