Editorial Workflows

Add To Footnote

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: Finds the footnote next to the cursor by taking the closest word and seeing if there is a matching footnote in the document. It uses a regex to do that.

If one is found (one of the reasons you should use unique footnote names, so there is no confusion), it lets you add text to it by requesting new input.

Shared by: @viticci

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Save Initial Cursor ?
Variable Name
initialsel
Value
Sel. Range: Start
Select Closest Word ?
Escape for RegEx ?
Set Variable ?
Variable Name
footnote
Value
Selected Text
Document Text ?
Folded Text
  • Include
  • Replace with:
Find Footnote Regex ?
Search for
^(\[\^footnote\]\:)\s(.+)$
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
Select Range ?
Range (from:to)
initialsel
Relative to
  • Entire Document
  • Current Selection
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No footnote found
…End If
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Request Text Input ?
Title
%var:footnote
Initial Text
Selected Text%cursor
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
newfootnote
Value
Input
Replace Selected Text ?
Replacement Text
newfootnote
Select Range ?
Range (from:to)
initialsel
Relative to
  • Entire Document
  • Current Selection