Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Ubiquity command to search Oracle documentation
* Ubiquity command to search Oracle documentation
name: "oracle",
author: {
name: "Gary Hodgson",
homepage: "",
email: ""
contributors: ["Don Seiler"],
license: "MPL",
icon: "",
description: "Executes search of Oracle RDBMS documentation.",
releaseinfo: {
1 : "(10 Sep 2008) Initial Release. Based on the Tahiti command by <a href=\"\">Don Seiler</a>"
help: "Specify search terms and version (9iR2, 10gR1, 10gR2, 11gR1). If no version is specified, or specified version is not recognized, all version will be searched. Specifying a version without a revision will default to the latest revision.",
takes: {"search term": noun_arb_text},
modifiers: {in: new CmdUtils.NounType( "Version", ["9iR2", "10gR1", "10gR2", "11gR1", "All"])},
preview: function( pblock, term, mods ) {
var msg = "Searches Oracle (${loc}) for '${term}'";
var subs = {term: term.text, loc:||"All"};
pblock.innerHTML = CmdUtils.renderTemplate( msg, subs );
execute: function( term, mods) {
var VersMap= {
vers=( ? : "ALL";
p=VersMap[vers] || VersMap["ALL"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment