<p></p>
<blockquote>
<p dir="auto">What happens if user supplies two directories on command line, where both contain a project?</p>
</blockquote>
<p dir="auto">Previously, the project/folder would be opened/created, files added, then the next project/folder would be opened/created (closing the previous), etc.  This is problematic when opening multiple files with shell globs that could refer to folders.  So I'm changed the feature to use a command-line flag.</p>
<blockquote>
<p dir="auto">IMHO opening a project just by specifying it's directory might be confusing. If I'd want to open a project, I'd pass it's project file as argument (which already works well).</p>
</blockquote>
<p dir="auto">Thank you for reminding me that I need to update the manual.</p>
<p dir="auto">The intent is to add folder handling.  The mechanism is via projects.  (Other editors/IDEs have been reported to behave similarly.)  This is useful when combined with a plugin that displays folder contents in the sidebar.  Otherwise, it's not very useful and can just be ignored.</p>
<blockquote>
<p dir="auto">As for passing directory on command line, much more intuitive behaviour (again just my own opinion) would be to open all files in the directory.</p>
</blockquote>
<p dir="auto">This behavior would also have problems with shell globs.  Many folders have thousands of files, and Geany would appear to be frozen/crashed/broken while loading so many files.  The current Geany behavior is to drop folders in some cases (currently, initial startup and socket behavior do not match; I've added changes to address this).</p>
<blockquote>
<p dir="auto">Creating a new project could be quite a surprise, especially for users who don't usually use projects.</p>
</blockquote>
<p dir="auto">Switching to using a command-line flag should resolve this.  From the menu, there are clues that Projects are involved.</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/3044#issuecomment-988425432">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYLAPLGX6MKUUOVWL3UP23TBANCNFSM5JN27XUA">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/AAIOWJ7CBMUEMUWCW4FMUFLUP23TBA5CNFSM5JN27XUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHLVCZWA.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#issuecomment-988425432",
"url": "https://github.com/geany/geany/pull/3044#issuecomment-988425432",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>