public
Last active

  • Download Gist
Vimperator plugin for ricepaper
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Vimperator plugin: 'Ricepaper'
//
// place in ~/.vimperator/plugin/readlater.js
// pushing ,rp will send the url to the 'readlater' script
// Translated from http://www.jukie.net/~bart/blog/20090304004744
 
mappings.addUserMap([modes.NORMAL], [",rp"],
"Ricepaper",
function () {
// var u = escape(document.getElementById("urlbar").value);
var u = document.getElementById("urlbar").value;
var r = io.system("ricepaper.sh '" + u + "'");
liberator.echo("ricepaper returned " + r);
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.