Created
May 17, 2010 15:24
-
-
Save anekos/403876 to your computer and use it in GitHub Desktop.
;F で開くべきタブをバッファし、最後に一気に開く
This file contains 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 | |
liberator.registerObserver( | |
'enter', | |
function () { | |
let scheduled = []; | |
plugins.libly.$U.around( | |
events, | |
'onEscape', | |
function (next) { | |
try { | |
if (scheduled.length) | |
scheduled.forEach(function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB)); | |
} finally { | |
scheduled = []; | |
return next(); | |
} | |
} | |
); | |
hints._hintModes['F'].action = function (elem) (liberator.log(elem),scheduled.push(elem), hints.show("F")); | |
} | |
); | |
EOM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment