WordPress Codex Search is a Ubiquity plugin that allows you to search WordPress Codex for functions and other references.
The command shortcut is 'wp'. Enjoy!
The source is available here wpcodex.js.
Check out more Ubiquity plugins.
WordPress Codex Search is a Ubiquity plugin that allows you to search WordPress Codex for functions and other references.
The command shortcut is 'wp'. Enjoy!
The source is available here wpcodex.js.
Check out more Ubiquity plugins.
Comments:
Vladimir Prelovac is CEO of Prelovac Media, a computer engineer by profession and an adventurer by state of mind. more +
"I would love to change the world, I just don't have the source code yet."
Built for WordPress enthusiasts, ManageWP helps you manage all your WordPress sites from one central location.
Read my book WordPress Plugin Development: Beginner's Guide
Published by Packt Publishing, available online through Amazon.
14 Comments
i have mozilla version 3.6.6 and installed ubiquity 0.6, when i entered this site i allowed the script but when pressing cntrl+space and typing wp [wp code] it does not work. Can you please help me make this work?
did you got it to work? i have the same prob. with this thing
ditto. It seems Vladimir no more need of the plugin for himself and abandon its development.
Mr Prelovac, may be you share you currently dev utils experience in replace of this ubiquity plugin. Thank you
Oleg, nowadays I just use Google :)
Here's the updated Ubiquity Command, I got it from https://wiki.mozilla.org/Labs/Ubiquity/Commands_In_The_Wild#PHP, have fun!
CmdUtils.CreateCommand({
homepage: "http://taukon.de/ubiquity-php-function-doc.php",
author: {name: "Sebastian Barthenheier", email: "tauven@gmail.com"},
license: "MPL,GPL",
description: "Searching in the PHP Documentation (Quickreference)",
help: "Enter text to search for",
names: ['php'],
arguments: [ {role: 'object', nountype: noun_arb_text, label: 'query'}],
preview: function(pblock, args) {
pblock.innerHTML = CmdUtils.renderTemplate("Searching for ${query} in the PHP documentation", args.object.text);
},
execute: function(args) {
Utils.openUrlInBrowser("http://php.net/search.php" +
Utils.paramsToString({pattern: args.object.text, show: "quickref"}
)
);
}
});
Lee - the updated command works for searching the PHP docs; here as an updated version of Prelovac's Ubiquity command for searching the WordPress Codex:
// WordPress codex search plugin for Ubiquity by Vladimir Prelovac
// Based on php search by Sebastian Barthenheier
// http://www.prelovac.com/vladimir
CmdUtils.CreateCommand(
{
names: ['wp'],
arguments: [ { role: 'object', nountype: noun_arb_text, label:'function'} ],
icon: "http://s.wordpress.org/favicon.ico?2",
homepage: "http://www.prelovac.com/vladimir/ubiquity/wordpress-search",
author: {name: "Vladimir Prelovac", email: "vprelovac@gmail.com"},
license: "MPL,GPL",
description: "Search WordPress codex documentation",
help: "Enter WordPress search",
execute: function(args)
{
searchText = jQuery.trim(args.object.text);
var url = "http://wordpress.org/search/{QUERY}"
var urlString = url.replace("{QUERY}", searchText);
Utils.openUrlInBrowser(urlString);
},
preview: function(pblock, args)
{
searchText = jQuery.trim(args.object.text);
if(searchText.length <= 0)
{
pblock.innerHTML = "Search WordPress Codex documentation";
return;
}
var previewTemplate = "Search WordPress Codex for ${query}";
var previewData = {query: searchText};
pblock.innerHTML = CmdUtils.renderTemplate(previewTemplate, previewData);
}
});
Thanks updated the code
sadly I'm having problems to get this to work; I'm using Ubiquity 0.1.9 - of course it immediately suggested I upgraded to the the 0.5.x version, but that might mean existing scripts might not work. Hit up the one with PHP doc search, and it gave this scary warning, read the script and it seemed like the code was not malicious (imagine that?) so I said ok.
I've got to your site, and nothing happens :(
And of course its your book that I'm reading to get to this point.
If you have any insight, I'd be most grateful.
I recognise your picture so I must have been here for one of your other articles.
I heard God used Object-Oriented COBOL to code the universe..
thanks,
David
This plugin will not work with the latest ubiquity parser 2 https://wiki.mozilla.org/Labs/Ubiquity/Parser_2_API_Conversion_Tutorial
You need to install Ubiquity first, and then you will get a notice when you visit this page.
Must confess I need instructions to install your plug-in. All I see is your javascript source file. How do I use this?????
Hey, how i install this ????
Great plugin, thanks!
Great plugin, thanks!