From c7c1f4cb792930de96f87b8171da379b7ce3bfa7 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 28 Jan 2022 19:13:56 -0800 Subject: refactor --- home/xyz/.config/myconf/surfingkeys_config.js | 44 +++++++++++++++------------ 1 file changed, 24 insertions(+), 20 deletions(-) (limited to 'home/xyz') diff --git a/home/xyz/.config/myconf/surfingkeys_config.js b/home/xyz/.config/myconf/surfingkeys_config.js index 1a5912e3..e0399abe 100644 --- a/home/xyz/.config/myconf/surfingkeys_config.js +++ b/home/xyz/.config/myconf/surfingkeys_config.js @@ -1,24 +1,26 @@ // https://github.com/brookhong/Surfingkeys/wiki/Migrate-your-settings-from-0.9.74-to-1.0 const { - aceVimMap, - mapkey, - imap, - imapkey, - getClickableElements, - vmapkey, - map, - unmap, - vunmap, - cmap, - addSearchAlias, - removeSearchAlias, - tabOpenLink, - readText, - Clipboard, - Front, - Hints, - Visual, - RUNTIME + aceVimMap, + mapkey, + imap, + imapkey, + getClickableElements, + vmapkey, + map, + unmap, + vunmap, + cmap, + addSearchAlias, + removeSearchAlias, + tabOpenLink, + readText, + Clipboard, + Front, + Hints, + Visual, + RUNTIME, + + iunmap, } = api; // old example config, may not work. also, I change ctrl-y to Ctrl-y @@ -45,9 +47,11 @@ unmap(''); // currently seems no good solution but to use another hotkey, I choose Ctrl+, // current surfingkeys version 0.9.74 is outdated and doesn't contain firenvim integration, wait for author to update // I tried to run the source code as temp extension in about:debugging or with web-ext cli tool but no luck +// update: surfingkeys 1.0 is out, but it integrate neovim in another way, and firefox is not supported? +// https://github.com/brookhong/Surfingkeys/issues/1542#:~:text=side%20is%20not-,necessary,-now%2C%20please%20help settings.useNeovim = true; -// disable all insert mode hotkeys except Ctrl-i for future firenvim integration +// disable all insert mode hotkeys except Ctrl-i for future neovim integration //iunmap(''); iunmap(''); iunmap(''); -- cgit v1.2.3-70-g09d2