I think that adding a "Remove n-1 empty lines" to LineOperations is great idea.

However, there are some concerns:
- Implementing this function should be simple enough, but I feel like this kind 
of plugin can quickly get out of hand with unused functions. Are there enough 
people who would use this function?

- This is stepping over the line into the land of 'code styling'.
        - This plugin is not really intended to format code (that stuff gets 
crazy real quick)

If you are looking for a quickly solution try this:
1. In find and replace (ctrl-h)
check: "Use reuglar expressions", "Use multi-line matching", "Case sensitive"
2. Search for: "\n{3,}" (or "(\r\n){3,}" in windows)
3. Replace with: "\n\n" (or "\r\n\r\n" in windows)

If you are looking for a more complex solution try 
[AStyle](http://astyle.sourceforge.net/).

If you can convince me that my concnerns above are not a problem, then I would 
be more than happy to add this function. Please let me know what you think 
after reading this.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/498#issuecomment-268190793

Reply via email to