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

Remove comment at the end of line #128

Closed
nkakouros opened this issue Mar 9, 2022 · 3 comments
Closed

Remove comment at the end of line #128

nkakouros opened this issue Mar 9, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@nkakouros
Copy link

Is it possible to delete a comment at the end of the current line? If not, would it be possible to consider adding this in a future release?

@numToStr
Copy link
Owner

numToStr commented Mar 9, 2022

Is it possible to delete a comment at the end of the current line?

Like how?

@nkakouros
Copy link
Author

nkakouros commented Mar 9, 2022

For instance, pressing a hypothetical mappinggcd while on the next line (| is the cursor position):

co|de_here  # comment here

OR

code_here # commen|t here

would delete the ___# comment here part or at least the # comment here part (without the preceding spaces).

@numToStr
Copy link
Owner

numToStr commented Mar 9, 2022

This would be interesting to solve with treesitter (using text-objects) but without it, this would be way easier do this with combination of vim commands rather than having an specific feature just for deleting end of line comments.

@numToStr numToStr added wontfix This will not be worked on duplicate This issue or pull request already exists and removed wontfix This will not be worked on labels Mar 9, 2022
@numToStr numToStr closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants