public
Last active

A pubmed search plugin for ubiquity that works with Ubiquity 0.5. Inspired by http://hublog.hubmed.org/archives/001747.html

  • Download Gist
pubmed0.5.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["pubmed"],
icon: "http://www.ncbi.nlm.nih.gov/favicon.ico",
description: "Searches <a href='http://www.ncbi.nlm.nih.gov/pubmed'>pubmed</a>.",
help: "type 'pubmed something', enter. The something is like searching from the front page of PubMed",
author: { name: "Ben J. Woodcroft", email: "b.woodcroft near pgrad.unimelb.edu.au"},
license: "GPL",
arguments: [{role: 'object', nountype: noun_arb_text}],
execute: function execute(args) {
var urlString = "http://www.ncbi.nlm.nih.gov/PubMed?term="+args.object.text;
Utils.openUrlInBrowser(urlString);
}
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.