alfred-pinboard version 2

Introduction

Yet another alfred-pinboard workflow. It provides INSTANT pinboard search and the following function.

  • search pinboard (pba) - supports various search condition such as or(|), and( ), and not(-)
  • search tag (pbtag)
  • search pinboard memo (pbmemo)
  • show starred bookmark (pbs)
  • browse and search history (pbhis)

  • goto or delete the searched bookmark
  • copy url of the searched bookmark
  • send url to pocket
  • mark or unmark the favorite bookmark

screenshot

Installation

  1. Download and Install alfred-pinboard Workflow
    • You need to set short-key manually
  2. pbauth username:TOKEN <- set access token
  3. pbreload - loads latest bookmarks and memo from pinboard.in
  4. search with pba, pbtag, pbmemo command

  • (optional) pbauthpocket
    • needed only if you want to send URL to pocket
  • (optional) install cron job : for faster searching without pbreload
    • download it from pinboard-download.py
    • chmod a+x pinboard-download.py
    • register script in crontab using crontab -e

      */15 * * * * /path/to/pinboard-download.py > /dev/null 2>&1

Command

  • pba query : search query from title, description and tags
  • pbnote query : search query from pinboard notes
  • pbu query : search query from description(title) in unread list
  • pbl query : search query from link
  • pbs query : search query from starred bookmarks
  • pbtag query : search tag list. You can autocomplete it by pressing ‘tab’

  • pbhis : show search history

  • pbreload : loads latest bookmarks from pinboard.in

  • pbauth username:token : Set pinboard authentication token (optional)
  • pbauthpocket : Pocket authentication (optional)

Search Condition

  • - before search word stands for not ex) -program
  • stands for and query ex) python alfred
  • | stands for or query ex) python|alfred
  • and query is evaluated first, than or query is evaluated

Keys

You need to set it manually because of alfred restriction

  • ctl-shift-cmd-p : launch pba
  • ctl-shift-cmd-c : launch pbtag
  • ctl-shift-cmd-n : launch pbnote
  • ctl-shift-cmd-s : launch pbs
  • ctl-shift-cmd-h : launch pbhis

Action

  • enter to open the selected url in the browser
  • tab to expand in pbtag command
  • Hold cmd while selecting a bookmark to copy it’s url to clipboard
  • Hold alt while selecting to delete a bookmark from your pinboard
  • Hold ctrl while selecting a bookmark to mark or unmark it
  • Hold shift while selecting to send URL to pocket. You need to set auth_token using pbauthpocket
Written on May 26, 2014