diff options
author | xyz <gky44px1999@gmail.com> | 2022-01-28 22:28:05 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-01-28 22:28:05 -0800 |
commit | 857b1f2a4cd6181871b1fdcfe12d4d738a167c66 (patch) | |
tree | bcaa600e4cd19f0d31588df4b2ba3153ae09534d /home/xyz/.config/myconf/surfingkeys_config.js | |
parent | d9868247066d9359f6c09cd7d9cdf88459e9e880 (diff) |
surfingkeys config, no map n to nzz
Diffstat (limited to 'home/xyz/.config/myconf/surfingkeys_config.js')
-rw-r--r-- | home/xyz/.config/myconf/surfingkeys_config.js | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/home/xyz/.config/myconf/surfingkeys_config.js b/home/xyz/.config/myconf/surfingkeys_config.js index 71ea7f42..896f526a 100644 --- a/home/xyz/.config/myconf/surfingkeys_config.js +++ b/home/xyz/.config/myconf/surfingkeys_config.js @@ -66,15 +66,17 @@ iunmap('<Ctrl-u>'); // disable emoj iunmap(':'); -mapkey('n','Find next then center cursor', function(){ - Visual.next(false); - Visual.feedkeys('zz'); -}); - -mapkey('N','Find previous then center cursor', function(){ - Visual.next(true); - Visual.feedkeys('zz'); -}); +// following code of map n to nzz not working in 1.0 +// I guess it may because Visual.next and Visual.feedkeys is not supported in new api, see below source code permalink +// https://github.com/brookhong/Surfingkeys/blob/3d1de8cab8584209cc6fec3ed7025e8ebab476d8/src/content_scripts/common/api.js#L774-L776 +//mapkey('n','Find next then center cursor', function(){ +// Visual.next(false); +// Visual.feedkeys('zz'); +//}); +//mapkey('N','Find previous then center cursor', function(){ +// Visual.next(true); +// Visual.feedkeys('zz'); +//}); // with firefox RFP enabled in user.js, smooth scroll and gg/G do not work, firefox RFP's feature settings.smoothScroll = false; |