<p>Project switching and opening using the Workbench plugin becomes possible with this PR in two different ways:</p>
<ol>
<li>Choose <em>"Select/Unselect project"</em> from the popup menu</li>
<li>Enable option <em>"Enable auto-open project by document"</em> in the Workbench settings</li>
</ol>
<p>Method 1 allows switching and opening a project by explicitly choosing <em>"Select/Unselect project"</em> from the popup menu in the Workbench sidebar.</p>
<p>If method 2 is enabled then a project is automatically switched to/opened if a document belonging to the project is opened or activated. This functionality is suppressed as long as a project is explicitly selected by method 1.</p>
<p><g-emoji class="g-emoji" alias="exclamation" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2757.png">❗️</g-emoji> <strong>This PR requires <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="473778640" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2234" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2234/hovercard" href="https://github.com/geany/geany/pull/2234">geany/geany#2234</a>. So please do NOT merge it until the Geany-PR is merged.</strong>  <g-emoji class="g-emoji" alias="exclamation" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2757.png">❗️</g-emoji></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/890'>https://github.com/geany/geany-plugins/pull/890</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Workbench: added support for project switching</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-0">workbench/README</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-1">workbench/src/dialogs.c</a>
    (28)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-2">workbench/src/idle_queue.c</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-3">workbench/src/idle_queue.h</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-4">workbench/src/plugin_main.c</a>
    (30)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-5">workbench/src/popup_menu.c</a>
    (59)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-6">workbench/src/sidebar.c</a>
    (45)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-7">workbench/src/sidebar.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-8">workbench/src/wb_project.c</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-9">workbench/src/wb_project.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-10">workbench/src/workbench.c</a>
    (156)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/890/files#diff-11">workbench/src/workbench.h</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/890.patch'>https://github.com/geany/geany-plugins/pull/890.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/890.diff'>https://github.com/geany/geany-plugins/pull/890.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-plugins/pull/890?email_source=notifications&email_token=AAIOWJ62FW7BCEPF44ZZAITQCRUPVA5CNFSM4II7UAE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDDPEJQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6OGSIJXW2LVCFJ5WLQCRUPVANCNFSM4II7UAEQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYSWAMNVOCRA7Z33HDQCRUPVA5CNFSM4II7UAE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDDPEJQ.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-plugins/pull/890?email_source=notifications\u0026email_token=AAIOWJ62FW7BCEPF44ZZAITQCRUPVA5CNFSM4II7UAE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDDPEJQ",
"url": "https://github.com/geany/geany-plugins/pull/890?email_source=notifications\u0026email_token=AAIOWJ62FW7BCEPF44ZZAITQCRUPVA5CNFSM4II7UAE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDDPEJQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>