From 5c36a8945cd6c83c814b8ea45ab834f3a25391df Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Mon, 6 Jan 2014 22:14:00 -0800 Subject: [PATCH] Change JS `for` counting down trigger from for to ford As suggested by @SirVer[1], this commit changes the trigger of the JavaScript `for` snippet that counts down from "for" to "ford". Since "for" is used pretty often, this will prevent people from needing to select which one they want from the menu each time. [1]: https://github.com/SirVer/ultisnips/pull/123/files#r8686514 --- UltiSnips/javascript.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index ffc9e36..1dff6b1 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -32,7 +32,7 @@ ${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) { endsnippet -snippet for "for (...) {...} (counting down, faster)" +snippet ford "for (...) {...} (counting down, faster)" for (var ${2:i} = ${1:Things.length} - 1; $2 >= 0; $2--) { ${3:${1/([^.]+).*/$1/}[$2]}${VISUAL}$0 }