<p>In <a href="https://github.com/geany/geany/pull/1144#discussion_r72894141">src/notebook.c</a>:</p>
<pre style='color:#555'>> @@ -754,6 +779,314 @@ void notebook_remove_page(gint page_num)
>  }
>  
>  
> +/* Copied from sidebar.c.  We can place this in one place like utils.c. */
> +static gboolean utils_filename_has_prefix(const gchar *str, const gchar *prefix)
> +{
> +  gchar *head = g_strndup(str, strlen(prefix));
> +  gboolean ret = utils_filenamecmp(head, prefix) == 0;
> +
> +  g_free(head);
> +  return ret;
> +}
> +
> +
> +/* Copied from sidebar.c.  We can place this in one place like utils.c,
> + * with a more formal naming convention. */
> +static gchar *get_doc_folder(const gchar *path)
</pre>
<p>It will already be totally different if you use "sort by basename"; and I find it kinda odd to want to see the sidebar <em>and</em> have the tabs sorted (which indeed would be consistent, but would be totally redundant).</p>

<p>I don't have a strong opinion here, I just found it a kinda artificial requirement that made the code uglier than needed.</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/1144/files/c064984ff29744294b7c25d2987c5b51f3c24405#r72894141">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ7GZZwzXtY9w0J2Omnmk0t3Tn_yuks5qa7mkgaJpZM4JQxCD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1IBKe1bjqRK6ROxJ-T9rZcrsl1Xks5qa7mkgaJpZM4JQxCD.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/1144/files/c064984ff29744294b7c25d2987c5b51f3c24405#r72894141"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>