<p>Hmmm I think the GtkTreeView stores all the info about what's being collapsed and expanded. I was looking for a way to get the data corresponding to that info inside the GtkTreeView, store it inside Geany and look for the way to rebuild the tree from that data. But I haven't found anything from GTK to be able to follow that "easy" approach.</p>

<p>It's true things become more complicated as plugins can be enabled/disabled. We could solve it like this:<br>
1. whenever a plugin becomes enabled, It starts with its keybindings expanded.<br>
2. meanwhile keeps enabled, data about whether it's expanded/collapse is stored as others.<br>
3. whenever a plugin becomes disabled, the data stored for the GtkTreeView is removed. </p>

<p>Anyway, it's becoming harder than I expected.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/645#issuecomment-152592264">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyiuGLMs2lM1hYLnIovFIS97aCZRks5pA55BgaJpZM4F5YKT.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/645#issuecomment-152592264"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>