eknkc Posted March 16, 2013 Posted March 16, 2013 (edited) Hi, I just created an alternative Pinboard workflow that allows searching for pinboard bookmarks within Alfred. It can fetch data asynchronously, so there should not be delays during searches and the matching code has some fuzzy logic. Might come in handy for Pinboard users so I wanted to share. NOTE: It requires Node.JS to be installed. Please get it from http://nodejs.org if you dont have Node. Keywords: pinboardauth username:TOKEN <- set access token (get it from https://pinboard.in/settings/password) pb query <- search for query pbunread <- items in read later list pbreload <- force data reload Hold cmd while selecting a bookmark to copy it's url to clipboard. Hold ctrl while selecting to delete a bookmark from your pinboard. Workflow: http://d.ekin.io/L6QO Source Code: https://github.com/eknkc/alfred-pinboard Let me know if it works for you. Edited December 2, 2013 by eknkc JMoVS, nirl, helloleo and 10 others 13
eknkc Posted March 16, 2013 Author Posted March 16, 2013 (edited) Posted a little update, Cmd + Click copies URL of a bookmark. Ctrl + Click deletes a bookmark from pinboard. A couple of fixes. Edited March 17, 2013 by eknkc Jono 1
eknkc Posted March 18, 2013 Author Posted March 18, 2013 Posted another update with some improvements and additions: - pbunread lists all bookmarks in "read later queue". when you select and open one here, it is automatically marked as read. - pbreload to force reload data from server. Jono and blkrk4000 2
JMoVS Posted March 21, 2013 Posted March 21, 2013 OMG, this is just plain AWESOME, thank you a LOT!!!!!!!!!!!!!!!!! :-) Does it need node.js to be installed on my main machine?
jaf Posted March 21, 2013 Posted March 21, 2013 I'm really curious to try this workflow out but the Droplr link is not working for me, I'm getting an Access Denied message.
eknkc Posted March 21, 2013 Author Posted March 21, 2013 (edited) I'm really curious to try this workflow out but the Droplr link is not working for me, I'm getting an Access Denied message. Added a Dropbox link to first post. Droplr's been getting worse lately. Edited March 21, 2013 by eknkc
jaf Posted March 22, 2013 Posted March 22, 2013 Added a Dropbox link to first post. Droplr's been getting worse lately. Thanx, working perfectly now!
twinpeaks Posted March 22, 2013 Posted March 22, 2013 Yeah, thank you for making and sharing this workflow. Extremely snappy results with tons of options. Pinboard and Alfred have never played so nice, thanks!
TruckTurner Posted April 15, 2013 Posted April 15, 2013 Thank you for this awesome workflow! This was actually the reason for me to finally get the PowerPack!
fform Posted April 19, 2013 Posted April 19, 2013 (edited) So using the pinboardauth command, it didn't seem to be creating the config file. It successfully made the directory, but refused to create or write to the file. If anyone is having this problem, you can just make a config.json file in ~/Library/Application Support/Alfred 2/Workflow Data/eknkc.pinboard/config.json With the contents { "token": "user:xxxxxxxxxxxxxxxxxxx" } I'm using node v0.8.9. I'm not sure if this is the release that changed the process.nextTick behavior or if your code is only for .9 +. Looking at search.js, it doesn't look like you are doing any error handling for this, which explains why even when the config creation fails, it reports that it's fine in the notification. Sorry, I'd submit a pull request but I'm not familiar with your node style. Update: Added ~ to denote that folder is actually in the user's home path Edited June 5, 2013 by fform
ericwbailey Posted April 23, 2013 Posted April 23, 2013 I installed a fresh copy of node.js with Homebrew, using this technique. I also had to create a config.json file manually, as per fform's instructions. Trying to search (i.e. pb foo) results in it defaulting to the Google/Wikipedia/Amazon/etc. fallback search, and it won't load relevant bookmarks. Any idea what could be causing this?
setupisanoun Posted May 22, 2013 Posted May 22, 2013 defaults to Google, Wikipedia etc for me as well.
ediventurin Posted May 31, 2013 Posted May 31, 2013 (edited) same here Actually, it works fine... all that I had to do was RTFM: NOTE: It requires Node.JS to be installed. Please get it from http://nodejs.org if you dont have Node. defaults to Google, Wikipedia etc for me as well. Edited June 7, 2013 by ediventurin
javatseng Posted August 9, 2013 Posted August 9, 2013 It works for me. Thanks. But I have to create "config.json" by myself.
digital_vibe Posted September 25, 2013 Posted September 25, 2013 Having some trouble with this. Was defaulting to Google, Wilipedia, etc as mentioned by others here. Made sure I had a fresh copy of node.js installed, then tried adding a config.json to ~/Library/Application Support/Alfred 2/Workflow Data/eknkc.pinboard/ as has also been suggested. Now it's not defaulting to Google, etc but every time I try to query it prompts me to supply my auth token. I've done that already with pinboardauth but it keeps asking for it.
cdprice Posted October 29, 2013 Posted October 29, 2013 (edited) Thank you! Terrific workflow that works perfectly. Edited October 29, 2013 by Christopher Price
jamiedefined Posted November 21, 2013 Posted November 21, 2013 This is embarrasing... seems like everyone had this work first try but me! I installed js.node, and I entered my pinboard auth token, but still no dice.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now