Editorial Workflows

Insertar una URL de Pinboard

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: IMPORTANTE: Hay que seleccionar el texto en el que queramos insertar la URL antes de lanzar el flujo de trabajo.

Muestra los enlaces que hemos guardado en Pinboard mediante la API y JSON

También se muestran los tags, pudiendo filtrar nuestros enlaces seleccionando hasta 3 tags.

Al elegir una URL ésta se inserta en el texto que hayamos seleccionado antes de hacer funcionar el workflow como sí fuese un enlace MD.

Shared by: @Picturetakerman

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Username: Leave Empty ?
Variable Name
username
Value
Password: Leave Empty ?
Variable Name
password
Value
Fill Login: Pinboard API Token ?
Tag Query: Leave Empty ?
Variable Name
tagquery
Value
Get Pinboard Tags ?
Select Tags ?
Title
Filter By Tag (Up To 3)
List (Lines)
Input
Multiple Selection
ON
Show in Popover
ON
Set Variable ?
Variable Name
tags
Value
Input
Count Tags ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Set Variable ?
Variable Name
tag_count
Value
Input
Split and Join Tags ?
Run the block if
tag_count
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0
Set Variable ?
Variable Name
tagstitle
Value
Split and Join Tags ?
Source Code
import workflow

taglines = workflow.get_variable('tag_count')
tags = workflow.get_variable('tags')

if taglines == '1':
	workflow.set_variable('tagquery', '&format=json&tag=' + tags)
	workflow.set_variable('tagstitle', tags)

elif taglines != '1':
	s = tags.split('\n')
	output = '+'.join(s)
	workflow.set_variable('tagstitle', output)
	workflow.set_variable('tagquery', '&format=json&tag=' + output)
…End If
No Tags ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
0
Set Variable ?
Variable Name
tagquery
Value
&format=json
…End If
Get Pinboard Bookmarks ?
Set Variable ?
Variable Name
main_list
Value
Input
Count ?
What to Count:
  • Words
  • Sentences
  • Lines
  • Characters
Set Variable ?
Variable Name
list_count
Value
Input
Stop for Empty List ?
Run the block if
main_list
  • 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 bookmarks found
…End If
If 1 Bookmark ?
Run the block if
list_count
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
1
Set Variable ?
Variable Name
bookmark_count
Value
Bookmark
…End If
If =! 1 Bookmark ?
Run the block if
list_count
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
1
Set Variable ?
Variable Name
bookmark_count
Value
Bookmarks
…End If
Your Bookmarks Title ?
Run the block if
tags
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
list_title
Value
list_count bookmark_count
…End If
Tags Title ?
Run the block if
tags
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Set Variable ?
Variable Name
list_title
Value
list_count bookmark_count For: tagstitle
…End If
Display Bookmarks ?
Title
%var:list_title
List (Lines)
main_list
Multiple Selection
OFF
Show in Popover
ON
Set Clipboard ?
Replace Selected Text ?
Replacement Text
[Selected Text](Clipboard)