Editorial Workflows

Workflow Launch URL

unlisted 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: Workflow実行用URLをコピーします

Shared by: @hals_pg

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Run Python Script ?
Source Code
# -*- coding: utf-8 -*-
import os
import editor
import json
import workflow

path = os.path.join(
	editor.get_workflows_path(),
	'Commands.edcmd'
)
out = []

with open(path, 'r') as f:
	temp = json.load(f)
	for i in temp:
		out.append(i['title'])

workflow.set_output(
	'\n'.join(out)
)

'''
import dialogs
import clipboard
from urllib import quote

select = dialogs.list_dialog('Workflows', out)

if select is None:
	workflow.stop()

url = '{}{}'.format(
	'editorial://?command=',
	quote(select)
)

clipboard.set(url)
dialogs.hud_alert('Copy', 'success', 0.5)
'''
Select from List ?
Title
Workflows
List (Lines)
Input
Multiple Selection
OFF
Show in Popover
OFF
URL Escape ?
Generate Text ?
Text
editorial://?command=Input
Set Clipboard ?
Show HUD ?
HUD Text
Copy
Duration
  • 1 Second
  • 2 Seconds
  • 3 Seconds
Icon
  • "Success"
  • "Error"