Editorial Workflows

Sidebar Notes

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: Shows a "Notes" sidebar next to the document (on iPhone, it's shown in an accessory panel instead of a sidebar)

Shared by: @olemoritz

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Run Python Script ?
Source Code
# coding: utf-8
import ui
import platform

def add_clipboard_action(sender):
	import clipboard
	clip = clipboard.get()
	if clip:
		sender.superview['textview1'].text += '\n' + clipboard.get()

def add_selection_action(sender):
	import editor
	sel = editor.get_selected_text()
	if sel:
		sender.superview['textview1'].text += '\n' + sel
def copy_action(sender):
	import clipboard
	import console

def clear_action(sender):
	sender.superview['textview1'].text = ''

ipad = platform.machine().startswith('iPad')
v = ui.load_view()
v.present('sidebar' if ipad else 'panel')