Note-Taking Bookmarklets for Fargo.io and TiddlyWiki

Tweet This Post

I'm a frequent user of both Fargo (an outliner) and TiddlyWiki (a one-page wiki). As an amateur javascript coder, I've written two bookmarklets that let me grab the title, link, and selected text from a page and format them in either OPML or WikiText.

Let's say I want a bookmark and note from the Fargo docs:

 

 

I've selected the text, "Fargo is a simple idea outliner, notepad, todo list, project organizer."

Wiki

Now I want to put this info in my wiki.

I add the following in my browser's bookmark manager, and title it "wiki"

javascript:window.alert('%5B%5B'+document.title+'%7C'+location.href+'%5D%5D\n\n> '+window.getSelection());

When I click on the bookmarklet, I get the following alert:

 

 

If I copy that text and paste it into a Tiddler, it looks like this:

 

 

Fargo (OPML)

If I want to put that info into Fargo, it's a bit more complicated.

First I add the following in my bookmark manager and title it "opml".

Then I add the following to my menubar.opml file:

add opml in dialog box

     dialog.ask ("paste raw opml here", "", "", function (data) {

          op.insertOpml (data, down);

          });

Visit the Fargo scripting page in the docs to learn how to install this script, or watch this video.

I click on the bookmarklet and see the following alert:

 

 

Then, in the outline into which I want to insert my notes, I choose the "add opml in dialog box" script. A dialog box pops up and I paste the contents from the previous alert:

 

 

The script will insert some new OPML into my outline:

 


Last built: Tue, Mar 31, 2015 at 2:05 PM

By Jeffrey Kishner, Friday, January 24, 2014 at 1:15 PM.