From 0e6529fbb0d9b96288a339b852b8d92d52eb02ca Mon Sep 17 00:00:00 2001 From: Antoine Dechaume Date: Mon, 18 Nov 2013 21:48:20 +0100 Subject: [PATCH 1/4] python: add for loop snipet --- UltiSnips/python.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 5378abc..6f58aba 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -15,6 +15,10 @@ if __name__ == '__main__': endsnippet +snippet for "for loop" !b +for ${1:item} in ${2:iterable}: + ${3:pass} +endsnippet ########## # COMMON # ########## From 2675e55dc1fef184539757d8d5f5e190ae0f1e49 Mon Sep 17 00:00:00 2001 From: Antoine Dechaume Date: Mon, 18 Nov 2013 21:48:39 +0100 Subject: [PATCH 2/4] python: add TODO snippet --- UltiSnips/python.snippets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 6f58aba..1d9eb9b 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -14,6 +14,9 @@ if __name__ == '__main__': ${1:main()}$0 endsnippet +snippet todo "TODO" !b +# TODO: ${1:description} (${2:author} `!v strftime("%d/%m/%y")`) +endsnippet snippet for "for loop" !b for ${1:item} in ${2:iterable}: From 4f6bcae1f99e315d79f5cbf11b166d9cdf527bc6 Mon Sep 17 00:00:00 2001 From: Antoine Dechaume Date: Tue, 19 Nov 2013 21:56:41 +0100 Subject: [PATCH 3/4] Revert "python: add TODO snippet" This reverts commit 2675e55dc1fef184539757d8d5f5e190ae0f1e49. --- UltiSnips/python.snippets | 3 --- 1 file changed, 3 deletions(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 1d9eb9b..6f58aba 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -14,9 +14,6 @@ if __name__ == '__main__': ${1:main()}$0 endsnippet -snippet todo "TODO" !b -# TODO: ${1:description} (${2:author} `!v strftime("%d/%m/%y")`) -endsnippet snippet for "for loop" !b for ${1:item} in ${2:iterable}: From 9ebe2b6886fc16b474e5195132f0d8cb7141ba21 Mon Sep 17 00:00:00 2001 From: Antoine Dechaume Date: Tue, 19 Nov 2013 21:59:12 +0100 Subject: [PATCH 4/4] update after SirVer review --- UltiSnips/python.snippets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index 6f58aba..b49d438 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -14,11 +14,11 @@ if __name__ == '__main__': ${1:main()}$0 endsnippet - -snippet for "for loop" !b +snippet for "for loop" b for ${1:item} in ${2:iterable}: ${3:pass} endsnippet + ########## # COMMON # ##########