<blockquote>
<p>Geany's requirement is 2.32 so you will have to find another solution.</p>
</blockquote>

<p>Using the other function  <code>g_file_enumerator_next_file()</code> would make the code messy as you would have to manage instances of GFile and GFileInfo as you traverse yourself.  I also don't like converting it to a recursive function (if it may be the solution).  I guess I'll just  wait for a version requirement bump.</p>

<blockquote>
<p>Can you discuss your use-case more? Your first post doesn't actually make a lot of sense when you look at it in this light.</p>
</blockquote>

<p>I thought saying "most helpful when recursively opening multiple files in the second instance of Geany" was my trump card because I assumed that there was no way to open other files in another instance but it turns out that there's actually a way.</p>

<p>So I guess I have to give other reasons why this feature would be helpful besides that.  And one simply is the basic function it gives: It helps users open multiple instances recursively, whether they would be capable of doing that in the command-line or not.</p>

<p>It's easier to open a dialog box than type <code>find /geany/src/ \( -name '*.c' -o -name '*.h' \) -print0 | xargs -0 geany</code>.  And if we use <code>-c</code>, we would also have to remember the directory that the target instance is using.  Maybe I could create a script for that - that's flexible enough to be configurable with the type of files I want to be opened, and the target instance I want the files to be opened with, but it's still much more convenient to just have it in a dialog box.  I do it often after all.</p>

<p>Reasons for opening multiple files recursively are pretty much obvious already, but here are mine:</p>

<ul>
<li>Open multiple files of the source directory of a project I want to work on with (like Geany's <code>./src</code>).</li>
<li>Open multiple files of the source directory of a dependency I want to examine (like glib and gtk+ 2) so I would know how their functions work.  I could access them easily with "Find Usage".</li>
<li>Open multiple files in /usr/include (like /usr/include/glib-2.0/ and /usr/include/gtk-2.0/gtk/
)  so I could have completion.</li>
</ul>

<p>That is of course not only about Geany.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1163#issuecomment-237784071">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ64JPeeg4hEf0MVPQfIjj2ZMy2Ngks5qcu_5gaJpZM4JdBJU">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJycUNP0k4cUkFuAzOjoDW17jZGJsks5qcu_5gaJpZM4JdBJU.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/pull/1163#issuecomment-237784071"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@konsolebox in #1163: \u003e Geany's requirement is 2.32 so you will have to find another solution.\r\n\r\nUsing the other function  `g_file_enumerator_next_file()` would make the code messy as you would have to manage instances of GFile and GFileInfo as you traverse yourself.  I also don't like converting it to a recursive function (if it may be the solution).  I guess I'll just  wait for a version requirement bump.\r\n\r\n\u003e Can you discuss your use-case more? Your first post doesn't actually make a lot of sense when you look at it in this light.\r\n\r\nI thought saying \"most helpful when recursively opening multiple files in the second instance of Geany\" was my trump card because I assumed that there was no way to open other files in another instance but it turns out that there's actually a way.\r\n\r\nSo I guess I have to give other reasons why this feature would be helpful besides that.  And one simply is the basic function it gives: It helps users open multiple instances recursively, whether they would be capable of doing that in the command-line or not.\r\n\r\nIt's easier to open a dialog box than type `find /geany/src/ \\( -name '*.c' -o -name '*.h' \\) -print0 | xargs -0 geany`.  And if we use `-c`, we would also have to remember the directory that the target instance is using.  Maybe I could create a script for that - that's flexible enough to be configurable with the type of files I want to be opened, and the target instance I want the files to be opened with, but it's still much more convenient to just have it in a dialog box.  I do it often after all.\r\n\r\nReasons for opening multiple files recursively are pretty much obvious already, but here are mine:\r\n\r\n- Open multiple files of the source directory of a project I want to work on with (like Geany's `./src`).\r\n- Open multiple files of the source directory of a dependency I want to examine (like glib and gtk+ 2) so I would know how their functions work.  I could access them easily with \"Find Usage\".\r\n- Open multiple files in /usr/include (like /usr/include/glib-2.0/ and /usr/include/gtk-2.0/gtk/\r\n)  so I could have completion.\r\n\r\nThat is of course not only about Geany."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1163#issuecomment-237784071"}}}</script>