<p>I'm sorry. I don't have much time lately, and the reason I'm active one other ones and this one is unfortunately that this one is trickier and thus requires more time commitment than more trivial issues.<br>
To try and get it moving again even with limited time, I'll drop some alternative code I wrote a while back. I wanted to post it integrated and with proper rationale, but well, you're still waiting. So just dropping it is probably better than nothing.</p>
<p><a href="https://gist.github.com/b4n/0f715c19239f501200cfeaefa5a6979c">https://gist.github.com/b4n/0f715c19239f501200cfeaefa5a6979c</a></p>
<ul>
<li>IMO (at time of writing I thought it was, at least) easier to understand</li>
<li>Probably more resources-greedy (likely more memory, likely more CPU), but I don't think it matters at this level</li>
<li>Fixes quite a few bugs in shortening.  I unfortunately forgot what they all were and would need to find them all again, but IIRC the implementation proposed in the PR can count and/or remove sequences not entirely composed of full directories (meaning it could remove half a directory, or nothing at all when it should, with specially crafted path lists sharing longer substrings outside of directory portions or alike). You probably can try the same kind of things I did using a similar sample program as the one in my proposed implementation.</li>
</ul>

<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/1445#issuecomment-364718941">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ6LCqHcCzYSavPWZWjA3fUgy5LlXks5tTmbxgaJpZM4MnYrc">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3lBBSf9xVWPTBRwdiB3pmZfW0yRks5tTmbxgaJpZM4MnYrc.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/1445#issuecomment-364718941"></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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","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":"@b4n in #1445: I'm sorry. I don't have much time lately, and the reason I'm active one other ones and this one is unfortunately that this one is trickier and thus requires more time commitment than more trivial issues.\r\nTo try and get it moving again even with limited time, I'll drop some alternative code I wrote a while back. I wanted to post it integrated and with proper rationale, but well, you're still waiting. So just dropping it is probably better than nothing.\r\n\r\nhttps://gist.github.com/b4n/0f715c19239f501200cfeaefa5a6979c\r\n* IMO (at time of writing I thought it was, at least) easier to understand\r\n* Probably more resources-greedy (likely more memory, likely more CPU), but I don't think it matters at this level\r\n* Fixes quite a few bugs in shortening.  I unfortunately forgot what they all were and would need to find them all again, but IIRC the implementation proposed in the PR can count and/or remove sequences not entirely composed of full directories (meaning it could remove half a directory, or nothing at all when it should, with specially crafted path lists sharing longer substrings outside of directory portions or alike). You probably can try the same kind of things I did using a similar sample program as the one in my proposed implementation."}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1445#issuecomment-364718941"}}}</script>