Editorial Workflows

Recent

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 provides a selection list of the most recent documents edited, therefore providing quick and easy switching between documents.

The first time it is called It creates a RecentDocuments.md file in DropBox. (If a different name or local directory is desired, change the first variable in the workflow.)

Each time the workflow is called it stores the current file name and path, removes duplicates, and then places the current file name and path at the top, thus showing the most recent documents at the top.

...dave

Shared by: daveterry

Comments: Comment Feed (RSS)

Tutorial Doctor — 06 Sep 2014
Thank you! Very useful.

+ Add Comment

Workflow Preview
Set Variable ?
Variable Name
RecentDocuments
Value
RecentDocuments.md
Get File Contents ?
File Name
%var:RecentDocuments
In Dropbox
ON
If File Does Not Exist
  • Empty Output
  • Stop Workflow
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set File Contents ?
File Name
%var:RecentDocuments
In Dropbox
ON
New Text
If File Does Not Exist
  • Create
  • Stop Workflow
…End If
Get Current File Name ?
Include Folder
OFF
Include Extension
OFF
Set Variable ?
Variable Name
DocName
Value
Input
Get Current File Name ?
Include Folder
ON
Include Extension
ON
Set Variable ?
Variable Name
FullDocPath
Value
Input
Get File Contents ?
File Name
%var:RecentDocuments
In Dropbox
ON
If File Does Not Exist
  • Empty Output
  • Stop Workflow
Set Variable ?
Variable Name
AllDocuments
Value
Input
Set File Contents ?
File Name
%var:RecentDocuments
In Dropbox
ON
New Text
DocName FullDocPath AllDocuments
If File Does Not Exist
  • Create
  • Stop Workflow
Remove Duplicate Lines ?
Set File Contents ?
File Name
%var:RecentDocuments
In Dropbox
ON
New Text
Input
If File Does Not Exist
  • Create
  • Stop Workflow
Select from List ?
Title
Recent Documents
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
ON
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Open Document ?
File Name
%var:Input
In Dropbox
ON
…End If