Editorial Workflows

Pinboard Tag to MD list

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: This will take a Pinboard tag as input and generate a Markdown formatted list of URLs from the output. It is very rough, but it works. [Be sure to replace USERNAME in the third task to your own Pinboard username.]

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
A document must be open... ?
Run the block if
File Name
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
ON
Message
No Document Selected
…End If
Request Text Input ?
Title
enter tag
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Generate Text ?
Text
https://feeds.pinboard.in/text/u:USERNAME/t:Input/
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import requests

action_in = workflow.get_input()

#TODO: Generate the output...

r = requests.get(action_in)
textout = r.text
action_out = textout

workflow.set_output(action_out)
Set Variable ?
Variable Name
textin
Value
Input
Document Text ?
Folded Text
  • Include
  • Replace with:
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Replace Selected Text ?
Replacement Text
textin
Document Text ?
Folded Text
  • Include
  • Replace with:
Find / Replace ?
Find
-----------------------------------------
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
(\n\[)(http.*?)(\])$
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
]\($2\)
Find / Replace ?
Find
\n\n^\b
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
* [
Find / Replace ?
Find
^[^\*].*?$
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Set Variable ?
Variable Name
Result
Value
Input
Extend Selection ?
Direction
  • Backward
  • Forward
  • Both
Unit
  • Start/End of Document
  • Start/End of Line
  • Number of Characters...
1
Replace Selected Text ?
Replacement Text
Result