Created
October 7, 2010 06:28
-
-
Save mattn/614655 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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