<div dir="ltr">Hello Vasiliy,<div><br></div><div>there should be no problem with your approach (the extra content of the config file will be preserved by Geany).</div><div><br></div><div>However, Geany offers plugins the possibility to read/write from/to the project config files natively. When you register for the "project-open" signal, the callback is invoked every time a project is opened and you receive GKeyFile * config as a parameter from which you can read the configuration using</div><div><br></div><div><a href="https://developer.gnome.org/glib/stable/glib-Key-value-file-parser.html">https://developer.gnome.org/glib/stable/glib-Key-value-file-parser.html</a><br></div><div><br></div><div>Similarly, when you register for "project-save", you can write your configuration to the GKeyFile signal parameter. You can also force the emission of the "project-save" signal by calling project_write_config().</div><div><br></div><div>You can check my projectorganizer plugin to see how to use the signals (the signals are registered in prjorg-main.c). You can also check</div><div><br></div><div><a href="http://www.geany.org/manual/reference/pluginsignals_8c.html">http://www.geany.org/manual/reference/pluginsignals_8c.html</a><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Jiri</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 15, 2017 at 4:21 PM, Vasiliy Faronov <span dir="ltr"><<a href="mailto:vfaronov@gmail.com" target="_blank">vfaronov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a small Geany plugin that needs some settings per Geany project.<br>
<br>
Currently, I do it as follows: the user manually writes a special<br>
section in the .geany project file, which my plugin reads as a generic<br>
INI file.<br>
<br>
I really like this approach (as a user) because it keeps all Geany<br>
project-related settings in one file.<br>
<br>
But is this approach OK in the eyes of Geany core?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Vasiliy<br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-<wbr>bin/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div>