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

Multiline none line visual gc behaviour #371

Open
ModProg opened this issue Jun 11, 2023 · 0 comments
Open

Multiline none line visual gc behaviour #371

ModProg opened this issue Jun 11, 2023 · 0 comments

Comments

@ModProg
Copy link

ModProg commented Jun 11, 2023

The title was a bit confusing, just wasn't sure how to phrase it.

Hitting gc with a visual selection:

If one has an inline selection, we get block comments:
grafik

Using the visual line mode we should get line comments
grafik

But what about non line visual mode spanning multiple lines, currently we get line comemnts for the full line as well, but that doesn't actually comment the section that was selected but also the rest of the line.

It would be neat if we could have block comments then:
grafik

I could also see having line comments, but only the selection, though that would need a bit more logic to detect whether there is anything after the selection in the last line:
grafik

Same consideration should be given to visual block select:
grafik

Exspecially, because while for the other examples gb can be used instead, that is not the case here:
grafik

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

1 participant