Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commands & keymappings for jumping to the next uncovered line #46

Open
jwodder opened this issue Oct 18, 2021 · 1 comment
Open

Comments

@jwodder
Copy link

jwodder commented Oct 18, 2021

Feature request: This plugin should define commands and keymappings for jumping to the next uncovered and/or partially-covered line so that navigating a coverage-annotated file becomes easier. The vim-signjump plugin is related prior art, but I believe that combining it with vim-coverage would just lead to jumping between each & every line of code.

@dbarnett
Copy link
Contributor

dbarnett commented Oct 22, 2021

What about if vim-signjump had an option to restrict to certain sign names? Then you could switch it into "coverage-only" mode and hop between only relevant coverage signs.

Actually, it looks like signjump has partially-implemented support for that, just currently doesn't offer any user-friendly way to access it. AFAICT you could override their <Plug> mappings to pass in your own configurable list of names:

let g:signjump_sign_names = ['uncovered']
" Put this in after/ if necessary so you can override their mapping.
noremap <silent> <Plug>SignJumpNextSign  @=signjump#next_sign(g:signjump_sign_names, 1)<CR>
" ...and similarly for the other <Plug> mappings

and then you could set up your own fancy helpers or mappings to easily toggle that set of names signjump should use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants