Why can't I use snippets after parentheses? - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com2013-06-19T00:06:06Zhttp://fogbugz.stackexchange.com/feeds/question/10868http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/10868/why-cant-i-use-snippets-after-parenthesesWhy can't I use snippets after parentheses?Michel de Ruiter2012-10-15T15:08:24Z2012-10-16T18:23:24Z
<p>We have <a href="http://blog.fogcreek.com/better-customer-service-with-snippets/" rel="nofollow">snippets</a> for quite a lot of things. For example, I have a snippet called <code>o</code> for some long and easy to misspell technical term. Aside: I even got it <a href="http://fogbugz.stackexchange.com/questions/8041/feature-request-let-snippets-work-everywhere/10820#10820" rel="nofollow">to work</a> outside the text area.</p>
<p>Now when I type <kbd>(</kbd> <kbd>o</kbd> <kbd>`</kbd>, I get this message:</p>
<p><strong>'(o' is not a known snippet; type '`' again to list them all.</strong></p>
<p>Apparently FogBugz regards the <code>(</code> character as part of the snippet. Why?! I mean: sure, someone might want to create a snippet with parentheses in its name, but wouldn't it be much more useful to be able to use snippets directly after parentheses?</p>
<p>Same goes for double quotes. And for most (all?) other punctuation.</p>
<p>Can this please be fixed? Or made configurable?</p>
<blockquote>
<p><img src="http://www.gravatar.com/avatar/baf927dcc0b0c5d0f41dece1e575aa0f?s=32&d=identicon&r=PG" alt="Fog Creek"> <a href="http://fogbugz.stackexchange.com/questions/1023/whats-that-kiwi-logo-and-case-number-at-the-bottom-of-my-feature-request" rel="nofollow">Case FC2345289</a></p>
</blockquote>
http://fogbugz.stackexchange.com/questions/10868/why-cant-i-use-snippets-after-parentheses/10870#10870Answer by db for Why can't I use snippets after parentheses?db2012-10-15T19:32:07Z2012-10-16T18:23:24Z<p>I also initially thought this error was for the reason you hypothesize (i.e., what if someone wanted to include quotes or parentheses in their snippet name?), but upon looking a little closer this is actually just a flat-out bug.</p>
<p>If you try to create a new snippet using anything other than letter, numbers, underscores, and forward slahes you receive the following error:</p>
<p><img src="http://our.fogbugz.com/default.asp?pg=pgDownload&pgType=pgWikiAttachment&ixAttachment=206472&sFileName=invalid-snippet-characters.png" alt="Invalid snippet character error message"></p>
<p>Looking at our snippet code, this appears to be a matter of allowing one set of characters for snippet names at creation time but searching for a different set of characters when it comes time to use those snippets.</p>
<p>I've filed a case internally to have this looked at.</p>
<p><strong>Update:</strong> This has been fixed and will be released in a future version of FogBugz.</p>