<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>

<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=AAIOWJYHOQMSPVV5GVEH5ITQCTIH3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDR5A#issuecomment-517880052">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3YLHUK7OR2BBD42WDQCTIH3ANCNFSM4IHNIU3Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ32IQ66SPLYB5J3TETQCTIH3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDR5A.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=AAIOWJYHOQMSPVV5GVEH5ITQCTIH3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDR5A#issuecomment-517880052",
"url": "https://github.com/geany/geany/pull/2234?email_source=notifications\u0026email_token=AAIOWJYHOQMSPVV5GVEH5ITQCTIH3A5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PDR5A#issuecomment-517880052",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>