<p>Please consider extending snippets to provide a partial snippets matching capability as in file matching on the bash command line  This would allow one to use snippets to quickly find and enter method signatures which would resolve an area where Eclipse has a slight advantage in Java programming</p>

<p>For example, one might enter several thousand partial snippet definitions into snippetsconf such as:</p>

<pre><code>[java]

paint/set/Subpixel/Text =void/ setSubpixelText(boolean subpixelText)    // Helper for setFlags(), setting or clearing the SUBPIXEL_TEXT_FLAG bit
paint/set/Text/Align    =void/ setTextAlign(PaintAlign align)          // Set the paint's text alignment
paint/set/Text/Locale   =void/ setTextLocale(Locale locale)             // Set the text locale
paint/set/Text/Scale/X  =void/ setTextScaleX(float scaleX)              // Set the paint's horizontal scale factor for text
paint/set/Text/Size     =void/ setTextSize(float textSize)              // Set the paint's text size

string/is/Empty         =boolean/ isEmpty()                             // Returns true if the length of this string is 0
string/last/IndexOf     =int/ lastIndexOf(String string)                // Returns the index of the start of the last match for the given string in this string, or -1
string/last/IndexOf     =int/ lastIndexOf(int c, int start)             // Returns the last index of the code point c, or -1
string/last/IndexOf     =int/ lastIndexOf(int c)                        // Returns the last index of the code point c, or -1
string/last/IndexOf     =int/ lastIndexOf(String subString, int start)  // Returns the index of the start of the previous match for the given string in this string, or -1
string/length           =int/ length()                                  // Returns the number of chars in this string
string/matches          =boolean/ matches(String regularExpression)     // Tests whether this string matches the given regularExpression
</code></pre>

<p>and then type:</p>

<pre><code>final int i = astr<tab>
</code></pre>

<p><b>Geany</b> would complete the string and offer a list of:</p>

<pre><code>is
last
length
matches
</code></pre>

<p>to get:</p>

<pre><code>final int i = a/**string**/last<tab>
</code></pre>

<p><b>Geany</b> would complete the string and offer a list of:</p>

<pre><code>int lastIndexOf(String string)               // Returns the index of the start of the last match for the given string in this string, or -1
int lastIndexOf(int c, int start)            // Returns the last index of the code point c, or -1
int lastIndexOf(int c)                       // Returns the last index of the code point c, or -1
int lastIndexOf(String subString, int start) // Returns the index of the start of the previous match for the given string in this string, or -1
</code></pre>

<p>from which one might choose the third entry to get the following code ready to fill out with the correct parameters:</p>

<pre><code>final int i = alastIndexOf(int c)                       // Returns the last index of the code point c, or -1
</code></pre>

<p><b>Thanks!</b></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/811">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0UTV0JBwY3t8Wyufqe2ivS-fGrPks5pPfgygaJpZM4G0a4R.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/811"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>