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

Jump through contiguous regions #9

Open
brendanator opened this issue Sep 20, 2018 · 4 comments
Open

Jump through contiguous regions #9

brendanator opened this issue Sep 20, 2018 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@brendanator
Copy link

If I have multiple lines in a row with a sign I would like to be able to jump to the next section of lines with a sign in it and skip over all the remaining ones in the section I am in

Ideally signs could be configurably grouped (e.g. all signs from a certain plugin) and those treated as a single section

@ZeroKnight ZeroKnight added the enhancement New feature or request label Sep 20, 2018
@ZeroKnight
Copy link
Owner

I think this would be pretty straight-forward to implement. Do you have a suggestion for a default mapping for this? It should probably be a <Leader> mapping, as I'm already trampling on spell checking with the current default mappings (see #6).

Ideally signs could be configurably grouped (e.g. all signs from a certain plugin) and those treated as a single section

I could probably implement this by allowing user-defined patterns that match against sign names. Ideally, this idea and the one in #8 should be implemented with the same solution.

@brendanator
Copy link
Author

Agreed that this should work with #8.

Don't know about default mappings, I personally would always configure this on so would suggest replacing ]s etc. 😄

Just had a thought that it might be nice to to use a contiguous region of signs as a text object too. Then could do something like yas to yank the region. Can open an issue for this if you like it

@ZeroKnight
Copy link
Owner

Just had a thought that it might be nice to to use a contiguous region of signs as a text object too. Then could do something like yas to yank the region. Can open an issue for this if you like it

Please. I had considered this, but having an issue to keep track of would be helpful.

@ZeroKnight ZeroKnight added this to the Version 0.7 milestone Sep 30, 2018
@aktau
Copy link

aktau commented Jun 10, 2019

A text object might be a nice cherry-on-top, but jumping between contiguous regions is a must have for me. Since I use signs for diffs (vim-signify and vim-gitgutter) I often have large regions of signs. But I'd rather jump quickly to the places that have errors (e.g. as marked by vim-lsp).

@ZeroKnight ZeroKnight modified the milestones: Version 0.7, Version 0.8 Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants