Have you read the manual? The project or general prefs for indentation only apply when opening new documents, because docs in your current session may have different overridden indent settings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I didn't read that section as I couldn't find a reference to it under project management (I thought it wouldn't be up-to-date). And I still can't find it.
But as I understand you, opening files within a project applies the indentation setting.
However, doesn't that mean opening the project itself/restarting Geany applies the setting to each file?
Or is the per-file setting which overrides the per-project setting also saved to disk?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're right there's no project-indent reference (I'll write that soon), I meant the general indent section that explains documents each have their own setting: http://www.geany.org/manual/index.html#indentation
You might want one document indented with tabs whilst another is open with spaces indentation. This information should be remembered in the session.
Thanks for the explaination. The current behavior sort of makes sense. I prefer spaces, but these don't work for Makefiles, so they need tabs regardless of the setting.
I might want a "convert all open files to the new indentation setting" button then (which could exclude Makefiles) :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just wanted to add that I posted this report (log in didn't work for some reason :(
Have you read the manual? The project or general prefs for indentation only apply when opening new documents, because docs in your current session may have different overridden indent settings.
Well, I didn't read that section as I couldn't find a reference to it under project management (I thought it wouldn't be up-to-date). And I still can't find it.
But as I understand you, opening files within a project applies the indentation setting.
However, doesn't that mean opening the project itself/restarting Geany applies the setting to each file?
Or is the per-file setting which overrides the per-project setting also saved to disk?
You're right there's no project-indent reference (I'll write that soon), I meant the general indent section that explains documents each have their own setting:
http://www.geany.org/manual/index.html#indentation
You might want one document indented with tabs whilst another is open with spaces indentation. This information should be remembered in the session.
Also I added a FAQ with this info:
http://www.geany.org/Documentation/FAQ#QQuestions15
Thanks for the explaination. The current behavior sort of makes sense. I prefer spaces, but these don't work for Makefiles, so they need tabs regardless of the setting.
I might want a "convert all open files to the new indentation setting" button then (which could exclude Makefiles) :)
> I might want a "convert all open files to the new indentation setting" button then
In Geany 0.20 there is a 'Project->Apply Default Indentation' command. Works for non-projects too.