<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=9009011" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LarsGit223">@LarsGit223</a> my problem with the session file setting mechanism is that I think its potentially very fragile, see for example <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="426675796" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/2114" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany/pull/2114/hovercard" href="https://github.com/geany/geany/pull/2114">#2114</a> that saves session files more often. I think it possible that may foil your cunning scheme by saving the project file with the new file in its session before you can control it.</p>
<p>Thats why I suggested that really you want to intercept the open and decide what to do before it becomes part of the project session files.</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=AAIOWJ575MFRIO3Y4HXX2DLQCVHNPA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PLHCI#issuecomment-517911433">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7F3SRARH3I7O7XP4DQCVHNPANCNFSM4IHNIU3Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYQAFC5TD6SHEFYUSLQCVHNPA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PLHCI.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=AAIOWJ575MFRIO3Y4HXX2DLQCVHNPA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PLHCI#issuecomment-517911433",
"url": "https://github.com/geany/geany/pull/2234?email_source=notifications\u0026email_token=AAIOWJ575MFRIO3Y4HXX2DLQCVHNPA5CNFSM4IHNIU32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PLHCI#issuecomment-517911433",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>