<blockquote>
<p>Hmmm, opening file F in project P1 triggers a project change to project P2 but keeping file F open (and did it actually get opened in P1?).</p>
<p>Maybe what you need is to capture the open <em>before</em> it happens, so you can stash the filename, switch projects and then open the file in the right one.</p>
</blockquote>
<p>No, not 100% correct. Lets imagine the following situation:</p>
<ul>
<li>The workbench gets opened</li>
<li>The user start to work on project A, some files of project A are opened</li>
<li>In the Workbench sidebar the user later clicks on a file of project B to open it</li>
<li>This causes a switch to project B: all open files get closed and only the file from project B is opened</li>
</ul>
<p>I do not want that behavior and it does not happen if ProjectPrefs item <code>project_session</code> is disabled. So I shortly disable it and then restore the old value.</p>
<p>If I work with multiple projects it's IMHO likely that I maybe just want to have a look at some header file of a project B without closing all open files from other projects A, C ....</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/2234?email_source=notifications&email_token=AAIOWJ4BE2HH4DPEALIXN7DQCU3T3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PJSBQ#issuecomment-517904646">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5CLXBF7JMFFDLXN63QCU3T3ANCNFSM4IHNIU3Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2SCARUBVG2CWD6YJLQCU3T3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PJSBQ.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/2234?email_source=notifications\u0026email_token=AAIOWJ4BE2HH4DPEALIXN7DQCU3T3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PJSBQ#issuecomment-517904646",
"url": "https://github.com/geany/geany/pull/2234?email_source=notifications\u0026email_token=AAIOWJ4BE2HH4DPEALIXN7DQCU3T3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PJSBQ#issuecomment-517904646",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>