<p>Rewrite the paste logic to use customizable and configurable pastebin services through configuration files, fixing <a href="https://github.com/geany/geany-plugins/issues/312" class="issue-link js-issue-link" data-url="https://github.com/geany/geany-plugins/issues/312" data-id="118362225" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#312</a>.  As a showcase, this PR adds support for <a href="http://fpaste.org">http://fpaste.org</a> quite painlessly in <a href="https://github.com/geany/geany-plugins/commit/a7bf3a73b85aa8b136aa6905c2ec0905d111f76f" class="commit-link"><tt>a7bf3a7</tt></a>.</p>

<p><strong>Disclaimer:</strong> this has not yet been tested under Windows, and I suspect that looking up the path to the system configuration directory holding the pastebin service configurations shipped with the plugin might not work.  This should be tested.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/338'>https://github.com/geany/geany-plugins/pull/338</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>geniuspaste: Fix a memory leak</li>
  <li>geniuspaste: Rewrite to use configurable pastebins</li>
  <li>geniuspaste: Restore configuration compatibility with previous version</li>
  <li>geniuspaste: Simplify getting the paste title</li>
  <li>geniuspaste: Use constants instead of direct string lookup</li>
  <li>geniuspaste: Show request and response in debug mode</li>
  <li>geniuspaste: Add fpaste.org support</li>
  <li>geniuspaste: Remove unused code</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-0">build/geniuspaste.m4</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-1">geniuspaste/Makefile.am</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-2">geniuspaste/README</a>
    (106)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-3">geniuspaste/data/Makefile.am</a>
    (11)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-4">geniuspaste/data/codepad.org.conf</a>
    (34)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-5">geniuspaste/data/dpaste.de.conf</a>
    (64)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-6">geniuspaste/data/fpaste.org.conf</a>
    (67)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-7">geniuspaste/data/pastebin.geany.org.conf</a>
    (35)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-8">geniuspaste/data/sprunge.us.conf</a>
    (88)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-9">geniuspaste/data/tinypaste.com.conf</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-10">geniuspaste/src/Makefile.am</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/338/files#diff-11">geniuspaste/src/geniuspaste.c</a>
    (755)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/338.patch'>https://github.com/geany/geany-plugins/pull/338.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/338.diff'>https://github.com/geany/geany-plugins/pull/338.diff</a></li>
</ul>

<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-plugins/pull/338">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9ONxrS8LY4brYk7F01deQOSpFQsks5parXRgaJpZM4HGW82.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-plugins/pull/338"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>