Skip to content

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

@frescoraja

Description

@frescoraja

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions