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
Commenting Paragraph #826
Comments
Whether or not to include the trailing line(s) in a paragraph is the difference between As for hitting |
It is commenting blank lines. Blank lines don't get commented in the 'tpope/vim-commentary'. If I comment 4 paragraphs using 4gcap and I want to uncomment only two of them. It comments two paragraphs which is a 4 + 2 = 6 paragraphs instead of uncommenting 2 paragraphs. |
Ok, that's a different question entirely and is a valid enhancement request. The issue you're hitting is that by adding comments to blank lines, Vrapper is taking what was 4 paragraphs (as defined by blank lines) and turning them into one big paragraph (since the lines are no longer blank). Then when you run Unfortunately, this is not easy to fix. Whenever I can, I call the underlying Eclipse API to perform operations for me. Those APIs are typically more robust since they are more aware of the entire Eclipse ecosystem and can handle more corner cases. For the Since I can't change the way this Now, maybe we could do some post-processing ourselves where we run this Eclipse command as normal and then run through all the affected lines and remove any comment characters from what would otherwise be empty lines. That introduces its own complexity (how do we know if comments were added or removed when the command ran? How do we know if a commented line was added by the user or by the Eclipse command?) and it's a bit of a hack to modify some lines and then run a process to un-modify them. Or, rather than using this Eclipse command, we could implement the feature ourselves. Since this command is provided by the JDT, it only affects java code and therefore only adds/removes the EDIT: Actually, I don't think you'd use the |
Commenting a pargraph
When commenting a paragraph using "gcap" , extra blank line getting commented every time.
Then when pressing " . " to toggle commenting it is doing something else like commenting another paragraph instead of uncommenting the present paragraph.
The text was updated successfully, but these errors were encountered: