Skip to content

Instantly share code, notes, and snippets.

@mattn
Created October 7, 2010 06:28
Show Gist options
  • Save mattn/614655 to your computer and use it in GitHub Desktop.
Save mattn/614655 to your computer and use it in GitHub Desktop.
js <<EOM
// <c-x>
(function() {
liberator.modules.mappings.addUserMap([liberator.modules.modes.COMMAND_LINE], ['<c-x>'],
"insert current URL to command line",
function () {
var curcmd = ':' + commandline.command;
if (!curcmd.match(/ $/)) curcmd += ' ';
commandline.open(curcmd, liberator.modules.buffer.URL);
}
);
})();
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment