-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Granular commenting #4009
Comments
Would this just insert a comment marker to the left of the cursor? |
There's some plugin in lunarvim that comments text using
I'm not saying that this is a clever binding. This is just the idea. If planned, then better bindings could be implemented. |
I actually like the current behavior. If this is implemented I'd prefer it as a separate command. |
Yes, the current behavior is short and fast. I don't want this feature to slow down or interfere with the current implementation. |
I think that for languages which support it, an option could be added to comment only the selection (from your example it appears as though the comment is from So for
you'd have:
|
How about implementing a |
I'm trying implement the toggle_block_comments command |
I actually have mostly implemented that if you want to take a look: #4718 |
I would say it's pretty much fully implemented I just need to add tests and add it to the docs |
@gabydd I think vscode's Toggle Block Comment behaves as 2022-11-30_00-19-59.mp4 |
Yeah at this moment the surrounding tokens need to be inside the selection, but i think I should be able to get it to search past whitespace surrounding a selection for comment tokens |
We might want to have |
That sounds reasonably useful to me but there is no way we find this issue. @gabydd could you make an issue that describes that specific subtasks and close this one. I think the main concerns here have been addressed and I usually feel that followup work is better of in its own issues |
Selections in line can't be commented. The entire line gets commented. Granular control with
C-c
would fix this.The text was updated successfully, but these errors were encountered: