Skip to content

Instantly share code, notes, and snippets.

@roskoff
Created September 19, 2008 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roskoff/11669 to your computer and use it in GitHub Desktop.
Save roskoff/11669 to your computer and use it in GitHub Desktop.
// ------------------------
// RAE
// ------------------------
CmdUtils.CreateCommand({
name: "rae",
description: "Busca el significado de una palabra.",
help: "Utiliza el diccionario de la Real Academia Española <br> " +
"para buscar el significado de una palabra. <br> " +
"Probar utilizando &quot;rae cornucopia&quot; <br> " +
"(Basado en el comando define)" ,
author: { name: "Eliseo Ocampos", email: "roskoff@gmail.com"},
license: "MPL",
takes: {"palabra": noun_arb_text},
execute: function( directObj ) {
var palabra = directObj.text;
Utils.openUrlInBrowser( "http://www.rae.es/" + escape(palabra) );
}
// TODO: preview
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment