Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
name: "erlang",
takes: {"function": noun_arb_text},
icon: "",
author: {name: "Jason Roelofs", email: ""},
license: "MPL,GPL",
description: "Open erlang documentation for a given module",
help: "Select an erlang module",
execute: function(directObject)
var url = "{QUERY}.html"
var urlString = url.replace("{QUERY}", directObject.text);
preview: function(pblock, directObject)
searchText = jQuery.trim(directObject.text);
if(searchText.length <= 0)
pblock.innerHTML = "Search erlang modules";
var previewTemplate = "Open erlang man page for ${query}";
var previewData = {query: searchText};
pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.