As far as I can find, Geany will only use the line endings specified in "Preferences / Files / Default end of line characters" when it creates new files. Existing files will keep their line endings, unless you check the "Ensure consistent line endings" box, in which case I suppose Geany will find out what type of line ending is in the majority, and use that throughout the file. What I would like is an option to always, unconditionally, force the default line ending to be applied when saving any file, whether newly created or previously existing.
--- 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/issues/984
It's not automatic or a preference, but I believe `Document->Set Line Endings->Convert and Set to <kind>` will go through the document and convert each line-ending to `<kind>`, making them all the same.
--- 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/issues/984#issuecomment-204117198
IIRC from a conversation a loooong while ago *automagically* changing line ends was judged to be unexpected some of the time, and so it was left as a manual operation as Matthew noted.
On 1 April 2016 at 06:41, Matthew Brush notifications@github.com wrote:
It's not automatic or a preference, but I believe Document->Set Line Endings->Convert and Set to <kind> will go through the document and convert each line-ending to <kind>, making them all the same.
— 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/issues/984#issuecomment-204117198
--- 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/issues/984#issuecomment-204179340
Sure, you can do it manually. But I don't see how this is much different from, for example, automagically trimming trailing whitespace. And I don't think you can argue that it would be "unexpected" if you have to tick a checkbox in Preferences to enable it.
--- 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/issues/984#issuecomment-204282752
I agree with @hhallen on this one. It's not unexpected if it's an opt-in setting.
A well written opt-in pull request may be accepted, or at least will cause the issue to be re-considered.
@elextr thank you, I'll dig into the code over the weekend and see what it would take.
github-comments@lists.geany.org