Text of gist.github.com › bastos › 26061 as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

github-code-search.js · GitHub

Skip to content Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Instantly share code, notes, and snippets. bastos / github-code-search.js Created November 18, 2008 05:43 Show Gist options Download ZIP Star 0 ( 0 ) You must be signed in to star a gist Fork 6 ( 6 ) You must be signed in to fork a gist Select an option No results found Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/bastos/26061.js"></script> Save bastos/26061 to your computer and use it in GitHub Desktop.

Select an option No results found Learn more about clone URLs Clone this repository at &lt;script src=&quot;https://gist.github.com/bastos/26061.js&quot;&gt;&lt;/script&gt; Save bastos/26061 to your computer and use it in GitHub Desktop. Download ZIP Raw github-code-search.js // Based on apidock.org Ubiquity Search: http://gist.github.com/8132 CmdUtils.CreateCommand( { name: "code", takes: {"function": noun_arb_text}, icon: "http://github.com/fluidicon.png", homepage: "http://tiago.zusee.com", author: {name: "Tiago Bastos", email: "comechao@gmail.com"}, license: "MPL,GPL", description: "Search on Github Code Search", help: "Search on Github Code Search", execute: function(directObject) { var url = "http://github.com/codesearch?q={QUERY}" var urlString = url.replace("{QUERY}", directObject.text); Utils.openUrlInBrowser(urlString); }, preview: function(pblock, directObject) { searchText = jQuery.trim(directObject.text); if(searchText.length <= 0) { pblock.innerHTML = "Search on github codesearch"; return; } var previewTemplate = "Search on Github: ${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.