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

Feature request: ability to select which lines the plugin parses #7

Open
Dale-Muccignat opened this issue Sep 13, 2023 · 2 comments
Open

Comments

@Dale-Muccignat
Copy link

Hi, love the idea and just getting into using the plugin. I might just be missing something but I can't seem to find a way to restrict the range for suggestions. For example, currently it looks through the preamble commands and makes suggestions, which can clutter the quick-fix menu.

I imagine something like a visual mode command so you can just manually select it, or maybe even just a "read only past the first section/title command.

Just a thought anyway :)

@anufrievroman
Copy link
Owner

Hi, thanks, it makes sense. I think in principle it is easy to make. I am actually quite a noob in vim script, but basically in this line (2223):

text = list(vim.current.buffer)

It should be not the buffer but the selection, depending on the command. I'll look into it, but if someone knows how to make it, please :)

@Dale-Muccignat
Copy link
Author

awesome, in my head it would work as different functions depending on if you're in visual or normal mode. I also have no idea but storing this page, which I thinkkkk is relevant, here in-case I have the chance to come back and learn a bit of vimscript: https://learnvimscriptthehardway.stevelosh.com/chapters/33.html

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