aboutsummaryrefslogtreecommitdiffstats
path: root/pukka.js
diff options
context:
space:
mode:
authorotsune2008-04-18 10:53:01 +0000
committerotsune2008-04-18 10:53:01 +0000
commit3f7d71f9a90def579664fde786853b5a8a247d9e (patch)
tree636e28c3d9b2ea2b1147514f87a9a3360235b0e1 /pukka.js
parente14eba2e1d8cbd3524cca10ec0e08de0d8c6a7f8 (diff)
downloadvimperator-plugins-3f7d71f9a90def579664fde786853b5a8a247d9e.tar.bz2
lang/javascript/vimperator-plugins/pukka.js: Add some comment
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9711 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'pukka.js')
-rw-r--r--pukka.js22
1 files changed, 14 insertions, 8 deletions
diff --git a/pukka.js b/pukka.js
index eaa5339..696af1d 100644
--- a/pukka.js
+++ b/pukka.js
@@ -1,9 +1,15 @@
/*
- * liberator plugin
- * Add `pukka' http://codesorcery.net/pukka/ command to Bookmark del.icio.us
- * For liberator 0.6pre
- * @author otsune (based on teramako)
- * @version 0.3
+ * ==VimperatorPlugin==
+ * @name Pukka
+ * @description Add bookmark to del.icio.us with Pukka
+ * @description-ja Pukkaを使用してdel.icio.usにブックマークする
+ * @author otsune info@otsune.com
+ * @namespace http://www.otsune.com/
+ * @minVersion 0.6pre
+ * @version 0.3
+ * ==/VimperatorPlugin==
+ *
+ * see also http://codesorcery.net/pukka/
*
* Variable:
* g:pukka_normalizelink
@@ -14,7 +20,7 @@
* Commands:
* 'pukka' or 'pu':
* Post bookmark to del.icio.us with Pukka
- * usage: :pukka http://example.com/
+ * usage: :pu[kka] [http://example.com/]
* Options:
* not implemented
*/
@@ -26,14 +32,14 @@ function(args){
if (!liberator.buffer.title || !liberator.buffer.URL || liberator.buffer.URL=='about:blank'){
return false;
}
- var str = 'pukka:';
+ var scheme = 'pukka:';
var title = encodeURIComponent(liberator.buffer.title);
var url = encodeURIComponent(liberator.buffer.URL);
var extend = encodeURIComponent(window.content.getSelection().toString() || '');
if (args){
url = encodeURIComponent(args);
}
- liberator.open(str + 'url=' + url + '&title=' + title + '&extended=' + extend);
+ liberator.open(scheme + 'url=' + url + '&title=' + title + '&extended=' + extend);
},{
completer: function(filter){
var complist = [];