<p>Snippets are triggered by keypress notifications to be sure that the user typed the snippet, otherwise they could be triggered by pastes as well.</p>

<p>Unfortunately when doing multiple insertions Scintilla does not report the keys typed, it appears to report it as insertions, which sort of makes sense.  But that does not trigger snippets.</p>

<p>Not sure how to distinguish multiple insertions from user typing and multiple insertions from other causes.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/676#issuecomment-145404253">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_qshHfE0tUsesA4Va1HBy9n2lHZks5o4bkIgaJpZM4GIsKG.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/issues/676#issuecomment-145404253"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>