<p dir="auto">This PR enables opening folders with Geany.  <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1171.">Resolves</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170155125" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/1171" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1171/hovercard" href="https://github.com/geany/geany/issues/1171">#1171</a>, others.</p>
<ul dir="auto">
<li>Folders are turned into projects.
<ul dir="auto">
<li>Project name is set to the basename of the folder.  May be changed from <em>Project / Properties</em>.</li>
<li>When the  <code>project_file_in_basedir</code> option is set, the <code>.geany</code> file is created inside the folder with name <code>[basename].geany</code>.</li>
<li>Otherwise, <code>.geany</code> files are stored in <code>~/.cache/geany/folders/</code> with name <code>[basename]_[path-md5].geany</code>.</li>
</ul>
</li>
<li>If the folder already has a project file (as noted above), the project file is opened.</li>
<li>Folders to open may be specified at the command line.  Any filenames following the folder name are added to the project.</li>
<li>New menu items:
<ul dir="auto">
<li><em>Project / Open Folder...</em></li>
<li><em>Project / Save As...</em> – to resave temporary project file to permanent location or to fork existing project to a different file.</li>
</ul>
</li>
<li>Does <em>not</em> interfere with existing method of project creation.</li>
</ul>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/3044/commits/e21a758a3f0c3d67b806ccc029409bcd1c33ed06" class="commit-link">e21a758</a>  Open folders as project</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/3044/files">6 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-5d5771dd29b0be0a11dd1148359dd0a650f7a69fe988ca5072f659bdf5be55d3">data/geany.glade</a>
    (18)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-1d0efcfbefd013aedf0477bd522a1e4506339c5ef239a6ef770f39270747c14c">src/callbacks.c</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-4fab1ecb4966e1c1fcdc7e68f336f5b53eda496dc036cbdd7a5068e59638b2f4">src/libmain.c</a>
    (62)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-910d89612d74e91ae70ed40289b3910b1c1a09b1f5a1bb0b15849f70760cbba2">src/main.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-08a2b89559e9135e3864640c098dc6367f44fdf0816a023ec7aab4a2edaa251c">src/project.c</a>
    (166)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3044/files#diff-160027d71936304387f551d0509e48292eab3429e467ec097ad56f80e2ebb544">src/project.h</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/3044.patch'>https://github.com/geany/geany/pull/3044.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/3044.diff'>https://github.com/geany/geany/pull/3044.diff</a></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/3044">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7GNJMHR7KIBU74GM3UPRLFNANCNFSM5JN27XUA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ5V2OEZZAXAE3YUHSLUPRLFNA5CNFSM5JN27XUKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4P7CE3IQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3044",
"url": "https://github.com/geany/geany/pull/3044",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>