From 43a78a8273b734075e70189c68d973d5313a6e26 Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Mon, 6 Jan 2014 07:46:16 -0800 Subject: [PATCH] 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 --- UltiSnips/javascript.snippets | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index ee97c09..bc530e9 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -79,71 +79,71 @@ endsnippet # Snippets for Console Debug Output -snippet ca "console.assert" +snippet ca "console.assert" b console.assert(${1:assertion}, ${2:"${3:message}"}); endsnippet -snippet cclear "console.clear" +snippet cclear "console.clear" b console.clear(); endsnippet -snippet cdir "console.dir" +snippet cdir "console.dir" b console.dir(${1:object}); endsnippet -snippet cdirx "console.dirxml" +snippet cdirx "console.dirxml" b console.dirxml(${1:object}); endsnippet -snippet ce "console.error" +snippet ce "console.error" b console.error(${1:"${2:value}"}); endsnippet -snippet cgroup "console.group" +snippet cgroup "console.group" b console.group("${1:label}"); ${VISUAL}$0 console.groupEnd(); endsnippet -snippet cgroupc "console.groupCollapsed" +snippet cgroupc "console.groupCollapsed" b console.groupCollapsed("${1:label}"); ${VISUAL}$0 console.groupEnd(); endsnippet -snippet ci "console.info" +snippet ci "console.info" b console.info(${1:"${2:value}"}); endsnippet -snippet cl "console.log" +snippet cl "console.log" b console.log(${1:"${2:value}"}); endsnippet -snippet cprof "console.profile" +snippet cprof "console.profile" b console.profile("${1:label}"); ${VISUAL}$0 console.profileEnd(); endsnippet -snippet ctable "console.table" +snippet ctable "console.table" b console.table(${1:"${2:value}"}); endsnippet -snippet ctime "console.time" +snippet ctime "console.time" b console.time("${1:label}"); ${VISUAL}$0 console.timeEnd("$1"); endsnippet -snippet ctimestamp "console.timeStamp" +snippet ctimestamp "console.timeStamp" b console.timeStamp("${1:label}"); endsnippet -snippet ctrace "console.trace" +snippet ctrace "console.trace" b console.trace(); endsnippet -snippet cw "console.warn" +snippet cw "console.warn" b console.warn(${1:"${2:value}"}); endsnippet