Editorial Workflows

New Dated Section

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the 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: For “diary” style documents, this workflow inserts the date at the beginning of the document as a second-level header, together with some blank lines.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import editor
from datetime import datetime, timedelta, date

runningDate = date.today()
format = '%x'
dateText = runningDate.strftime(format)
editor.insert_text('## ')
editor.insert_text(dateText)
editor.insert_text('\n\n\n')
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
2