Add "b" trigger option to JS console snippets

The "b" trigger option will require that the snippet be expanded only if
it is at the "beginning of the line", that is, only whitespace may
precede the tab trigger.

As suggested by @SirVer[1], this commit adds the "b" tab trigger option
to all of the JavaScript console API snippets.

[1]: https://github.com/SirVer/ultisnips/pull/122/files#r8665940
This commit is contained in:
Joe Lencioni 2014-01-06 07:46:16 -08:00
parent 3c461925b9
commit 43a78a8273

View File

@ -79,71 +79,71 @@ endsnippet
# Snippets for Console Debug Output # Snippets for Console Debug Output
snippet ca "console.assert" snippet ca "console.assert" b
console.assert(${1:assertion}, ${2:"${3:message}"}); console.assert(${1:assertion}, ${2:"${3:message}"});
endsnippet endsnippet
snippet cclear "console.clear" snippet cclear "console.clear" b
console.clear(); console.clear();
endsnippet endsnippet
snippet cdir "console.dir" snippet cdir "console.dir" b
console.dir(${1:object}); console.dir(${1:object});
endsnippet endsnippet
snippet cdirx "console.dirxml" snippet cdirx "console.dirxml" b
console.dirxml(${1:object}); console.dirxml(${1:object});
endsnippet endsnippet
snippet ce "console.error" snippet ce "console.error" b
console.error(${1:"${2:value}"}); console.error(${1:"${2:value}"});
endsnippet endsnippet
snippet cgroup "console.group" snippet cgroup "console.group" b
console.group("${1:label}"); console.group("${1:label}");
${VISUAL}$0 ${VISUAL}$0
console.groupEnd(); console.groupEnd();
endsnippet endsnippet
snippet cgroupc "console.groupCollapsed" snippet cgroupc "console.groupCollapsed" b
console.groupCollapsed("${1:label}"); console.groupCollapsed("${1:label}");
${VISUAL}$0 ${VISUAL}$0
console.groupEnd(); console.groupEnd();
endsnippet endsnippet
snippet ci "console.info" snippet ci "console.info" b
console.info(${1:"${2:value}"}); console.info(${1:"${2:value}"});
endsnippet endsnippet
snippet cl "console.log" snippet cl "console.log" b
console.log(${1:"${2:value}"}); console.log(${1:"${2:value}"});
endsnippet endsnippet
snippet cprof "console.profile" snippet cprof "console.profile" b
console.profile("${1:label}"); console.profile("${1:label}");
${VISUAL}$0 ${VISUAL}$0
console.profileEnd(); console.profileEnd();
endsnippet endsnippet
snippet ctable "console.table" snippet ctable "console.table" b
console.table(${1:"${2:value}"}); console.table(${1:"${2:value}"});
endsnippet endsnippet
snippet ctime "console.time" snippet ctime "console.time" b
console.time("${1:label}"); console.time("${1:label}");
${VISUAL}$0 ${VISUAL}$0
console.timeEnd("$1"); console.timeEnd("$1");
endsnippet endsnippet
snippet ctimestamp "console.timeStamp" snippet ctimestamp "console.timeStamp" b
console.timeStamp("${1:label}"); console.timeStamp("${1:label}");
endsnippet endsnippet
snippet ctrace "console.trace" snippet ctrace "console.trace" b
console.trace(); console.trace();
endsnippet endsnippet
snippet cw "console.warn" snippet cw "console.warn" b
console.warn(${1:"${2:value}"}); console.warn(${1:"${2:value}"});
endsnippet endsnippet