From e7f23cbdbc82f0cc8f5f88e5a408fef612e3c411 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 21 Aug 2014 00:00:40 +0200 Subject: Make C-x C-f a global keybinding --- .keysnail.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.keysnail.js b/.keysnail.js index aac119f..93898f6 100644 --- a/.keysnail.js +++ b/.keysnail.js @@ -163,6 +163,12 @@ key.setGlobalKey(["C-x", "C-b"], function (ev, arg) { ext.exec("tanything", arg); }, "view all tabs", true); +key.setGlobalKey(['C-x', 'C-f'], function () { + prompt.read("Open url in new tab:", function (aStr) { + gBrowser.loadOneTab(aStr, {inBackground: false}); + }); +}, 'Open a URL in a new tab', true); + key.setEditKey(["C-x", "h"], function (ev) { command.selectAll(ev); }, 'Select whole text', true); @@ -402,12 +408,6 @@ key.setViewKey('q', function (aEvent, aArg) { BrowserCloseTabOrWindow(); }, 'Close tab / window', true); -key.setViewKey(['C-x', 'C-f'], function () { - prompt.read("Open url in new tab:", function (aStr) { - gBrowser.loadOneTab(aStr, {inBackground: false}); - }); -}, 'Open a URL in a new tab', true); - key.setViewKey('g', function () { prompt.read("Open url in current tab:", function (aStr) { gBrowser.loadURI(aStr, null, null); -- cgit v1.2.3-54-g00ecf