summaryrefslogtreecommitdiffstats
path: root/vimfx/config.js
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-08-09 21:50:24 -0400
committerJesse Luehrs <doy@tozt.net>2016-08-09 22:36:42 -0400
commit3e8d6a54af3f3b0b1264372b41f9e57c4852f93f (patch)
tree01c3758f3ab62e6144e3ef6ca4f710aa62cdec3e /vimfx/config.js
parent96cd8d7e486015d3e84c5c37e985e344381ce7f6 (diff)
downloadconf-3e8d6a54af3f3b0b1264372b41f9e57c4852f93f.tar.gz
conf-3e8d6a54af3f3b0b1264372b41f9e57c4852f93f.zip
make O mirror T
Diffstat (limited to 'vimfx/config.js')
-rw-r--r--vimfx/config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/vimfx/config.js b/vimfx/config.js
index b08a327..64c2726 100644
--- a/vimfx/config.js
+++ b/vimfx/config.js
@@ -4,6 +4,7 @@ const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
const mm = Cc['@mozilla.org/globalmessagemanager;1']
.getService(Ci.nsIMessageListenerManager);
+vimfx.set('mode.normal.focus_search_bar', '');
vimfx.set('mode.normal.copy_current_url', 'y');
vimfx.set('mode.normal.history_back', '<force><C-h>');
vimfx.set('mode.normal.history_forward', '<force><C-l>');
@@ -79,6 +80,18 @@ vimfx.addCommand({
})
vimfx.set('custom.mode.normal.pocket', 's');
+vimfx.addCommand({
+ name: 'focus_unhighlighted_location_bar',
+ description: 'Focus the location bar with the URL unhighlighted',
+ category: 'location',
+ order: commands.focus_location_bar.order + 1,
+}, (args) => {
+ commands.focus_location_bar.run(args);
+ let active = args.vim.window.document.activeElement;
+ active.selectionStart = active.selectionEnd;
+});
+vimfx.set('custom.mode.normal.focus_unhighlighted_location_bar', 'O');
+
let isEditableInput = (e) => {
let tag = e.tagName.split(':').pop().toLowerCase();
// XXX