<p>I sometimes try to open a file from a terminal and pass the wrong path. Asking the user to confirm the new file solves this problem, they can easily press escape to cancel the new document.</p>
<p>Occasionally I might use a glob that turns out to be wrong too, creating many unwanted new documents. So I made cancelling a new document ignore any remaining new filenames passed to Geany.</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/1107820/67089763-58e56200-f1a0-11e9-9dd3-133a0b0ac3b7.png"><img src="https://user-images.githubusercontent.com/1107820/67089763-58e56200-f1a0-11e9-9dd3-133a0b0ac3b7.png" alt="image" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/2369'>https://github.com/geany/geany/pull/2369</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Ask whether to open new files from command-line</li>
  <li>If new document cancelled, ignore remaining new filenames</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/2369/files#diff-0">src/libmain.c</a>
    (24)
  </li>
</ul>

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