<p>This would allow us to force Geany to not open a new instance even<br>
if no file arguments are passed in the command-line.</p>

<p>Some tweaks were also added so that the current instance window would<br>
activate itself even if no new file arguments are specified whenever<br>
this option is used.</p>

<p>This is useful if we want to make sure that we always only have a single instance.  And also so we can have easy shortcuts to switch from a virtual terminal to the editor, like this function: <code>w() { geany -I "$@"; }</code>,</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/1128'>https://github.com/geany/geany/pull/1128</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add '--no-new-instance' option.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-0">doc/geany.1.in</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-1">doc/geany.txt</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-2">src/libmain.c</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-3">src/main.h</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-4">src/socket.c</a>
    (35)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1128/files#diff-5">src/ui_utils.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1128.patch'>https://github.com/geany/geany/pull/1128.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1128.diff'>https://github.com/geany/geany/pull/1128.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/1128">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ4uy4LreQc6EBJoX0nSH_rCk_HzTks5qThiagaJpZM4JH3f0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_gVxvZ8kqOWgo2LjRPqcuH-Dsxnks5qThiagaJpZM4JH3f0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1128"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>