From 857b1f2a4cd6181871b1fdcfe12d4d738a167c66 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 28 Jan 2022 22:28:05 -0800 Subject: surfingkeys config, no map n to nzz --- home/xyz/.config/myconf/surfingkeys_config.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'home/xyz/.config/myconf') 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(''); // 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; -- cgit v1.2.3-70-g09d2