Skip to content

Instantly share code, notes, and snippets.



Last active Dec 23, 2015
What would you like to do?
configuration to add command to open a url in a background tab on vimperator vimperatorでバックグラウンドタブでurlを開くコマンドを追加
javascript <<EOM
commands.add(["backgroundtabopen", "bt[open]", "btabnew"],
"Open one or more URLs in a new background tab",
function (args) {
let index = tabs.getTab();
let special = args.bang;
args = args.string;
if (options.get("activate").has("all", "tabopen"))
special = !special;
let where = special ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB;
if (args), { where: where });
else"", { where: where });
}, {
bang: true,
completer: function (context) completion.url(context),
literal: 0,
privateData: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment