From: PHO Date: Fri, 20 Jan 2017 02:21:18 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=sugar.git;a=commitdiff_plain;h=09859e74f465199b8c9bfcd6efda3cec01d26e8d Auto commit by The Sugar System. --- diff --git a/IGNORE b/IGNORE index 3a2167e..9ba9a2e 100644 --- a/IGNORE +++ b/IGNORE @@ -33,6 +33,10 @@ .config/inkscape .config/gmpc .config/gtk-2.0/gtkfilechooser.ini +.config/mimeapps.list +.config/pavucontrol.ini +.config/pulse +.config/wireshark .covers .cpan .cpanplus @@ -77,6 +81,7 @@ .gimp* .gitk .glimpse* +.gkrellm2 .gmpc .gnome-commander .gnome2* @@ -148,6 +153,8 @@ .trackballs .uim.d .unison +.vboxclient-clipboard.pid +.vim/.netrwhist .viminfo .vimperator/info .w3m/bookmark.bak.html diff --git a/dot-files/_vimperator/plugin/mojang-jira_js b/dot-files/_vimperator/plugin/mojang-jira_js new file mode 100644 index 0000000..f507218 --- /dev/null +++ b/dot-files/_vimperator/plugin/mojang-jira_js @@ -0,0 +1,43 @@ +var INFO = xml` + + PHO + CC0 1.0 Universal + + +`; + +(function () { + +var base_URI = 'https://bugs.mojang.com'; + +function mojira(opts) { + if (opts.query) { + var URI = base_URI + '/secure/QuickSearch.jspa?searchString=' + encodeURIComponent(opts.query); + liberator.open(URI, opts.tab); + } + else { + liberator.open(base_URI, opts.tab); + } +} + +liberator.modules.commands.addUserCommand( + ['mojira'], + 'Search MoJIRA', + function (args) { + mojira({ + query: args.string.length > 0 ? args.string : null, + tab: args.bang ? liberator.NEW_TAB : liberator.CURRENT_TAB + }); + }, + { + bang: true, + argCount: '*' + }, + true +); + +})();