Feature Request: Let snippets work "everywhere" - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com2013-05-24T13:14:16Zhttp://fogbugz.stackexchange.com/feeds/question/8041http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://fogbugz.stackexchange.com/questions/8041/feature-request-let-snippets-work-everywhereFeature Request: Let snippets work "everywhere"Michel de Ruiter2011-04-29T12:56:53Z2012-09-26T21:11:48Z
<p>I use snippets all the time. For example I defined some abbreviation snippets (two letters only) for long terms that I use often.</p>
<p>I tried to use the snippets when typing the title/subject and in tags, but it doesn't work.</p>
<p>Can snippets (or at least the single-line ones) be made to work "everywhere" please?</p>
http://fogbugz.stackexchange.com/questions/8041/feature-request-let-snippets-work-everywhere/8047#8047Answer by Rich Armstrong for Feature Request: Let snippets work "everywhere"Rich Armstrong2011-04-29T16:21:52Z2011-04-29T16:21:52Z<p>I've tagged this as a feature request. When it gets enough votes, it'll get a case filed.</p>
http://fogbugz.stackexchange.com/questions/8041/feature-request-let-snippets-work-everywhere/10820#10820Answer by Michel de Ruiter for Feature Request: Let snippets work "everywhere"Michel de Ruiter2012-09-26T21:11:48Z2012-09-26T21:11:48Z<p>I made snippets work in most places (i.e. on the case page) using this BugMonkey customization:</p>
<pre><code>name: Snippets almost everywhere
description: Makes snippets work in most input fields
author: Michel de Ruiter
version: 0.1.0.0
js:
$(document).on('keypress',
'input:not(.droplist-text),textarea:not(#sEventEdit)',
function(event) {
if (!fb.snippet) return; // Currently only available on the case page:
fb.snippet.handleSnippetTargetKeypress(this, event);
$('#editSnippetHelper').css('width', ''); // Don't restrict helper width
});
</code></pre>