neoclide / coc-smartf

Make jump to character easier.
72 stars 6 forks source link

coc-smartf-repeat behavior when mapped to `;` #18

Open frescoraja opened 3 years ago

frescoraja commented 3 years ago

hi, i currently have the following key maps:

nmap f <Plug>(coc-smartf-forward)
nmap F <Plug>(coc-smartf-backward)
nmap ; <Plug>(coc-smartf-repeat)
nmap , <Plug>(coc-smartf-repeat-opposite)

i notice that when there are many matches to a query character, the key ; is used to jump to matches that could not be indexed by using a-z0-1,. , so to jump back you might have to press ; then c (if it were the 41st match , for example). If I initiate a repeat-opposite search by pressing ,, and any of the results are so far away in the match jump list to require a ; key press, the plugin jumps to the match indicated by ., then switches to a repeat search, in opposite direction of original repeat-opposite search.. I would expect it to realize i'm in the middle of a repeat-opposite search and continue jumping through match list in that direction. hope that makes sense.