From 6b1c3c618d167ecefe35910c495131ed2ad11eeb Mon Sep 17 00:00:00 2001 From: Gert Date: Wed, 4 Mar 2015 22:03:29 +0100 Subject: [PATCH 1/7] added GPL2 --- snippets/sh.snippets | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index 4d2c62b..8959a27 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -92,3 +92,22 @@ snippet fun function ${1:function_name}() { ${0:#function_body} } + +snippet GPL2 +######################################################################### +# ${1:One line to give the program's name and a brief description.} # +# Copyright (C) `strftime("%Y")` ${2:`g:snips_author`} # +# # +# This script is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program; if not, see . # +######################################################################### From 25b7406f746cbfc185c20d277a334893e9878eb8 Mon Sep 17 00:00:00 2001 From: Gert Date: Thu, 5 Mar 2015 14:49:51 +0100 Subject: [PATCH 2/7] snippet make-up ;) --- snippets/sh.snippets | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index 8959a27..07b57d8 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -92,22 +92,28 @@ snippet fun function ${1:function_name}() { ${0:#function_body} } + +snippet funtitle + #=== FUNCTION =============================================================== + # NAME: ${1:function_name} + # DESCRIPTION: ${0:One line to give a brief description.} + #============================================================================== snippet GPL2 -######################################################################### -# ${1:One line to give the program's name and a brief description.} # -# Copyright (C) `strftime("%Y")` ${2:`g:snips_author`} # -# # -# This script is free software; you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program; if not, see . # -######################################################################### + #=== LICENSE ================================================================ + # ${1:One line to give the program's name and a brief description.} + # Copyright (C) `strftime("%Y")` ${2:`g:snips_author`} + # + # This script is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by + # the Free Software Foundation; either version 2 of the License, or + # (at your option) any later version. + # + # This program is distributed in the hope that it will be useful, + # but WITHOUT ANY WARRANTY; without even the implied warranty of + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + # GNU General Public License for more details. + # + # You should have received a copy of the GNU General Public License + # along with this program; if not, see . + #============================================================================== From 2e497c5ab0c0f496634469469ca4b98c5ae081a6 Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Mar 2015 11:50:58 +0100 Subject: [PATCH 3/7] foreach changed foreach snipped to the one used in Visual Studio --- snippets/cs.snippets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snippets/cs.snippets b/snippets/cs.snippets index e537bce..490c779 100644 --- a/snippets/cs.snippets +++ b/snippets/cs.snippets @@ -103,15 +103,15 @@ snippet for } # foreach snippet fore - foreach (var ${1:entry} in ${2}) { + foreach (${1:var} ${2:entry} in ${3}) { ${0} } snippet foreach - foreach (var ${1:entry} in ${2}) { + foreach (${1:var} ${2:entry} in ${3}) { ${0} } snippet each - foreach (var ${1:entry} in ${2}) { + foreach (${1:var} ${2:entry} in ${3}) { ${0} } # interfaces From 8944f3b3db4516c8d3fe2f644dc7cde9a1c0dfb4 Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Mar 2015 11:59:59 +0100 Subject: [PATCH 4/7] if with standard value True like in visual studio --- snippets/cs.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/cs.snippets b/snippets/cs.snippets index 490c779..023721b 100644 --- a/snippets/cs.snippets +++ b/snippets/cs.snippets @@ -71,7 +71,7 @@ snippet simc } # if condition snippet if - if (${1}) { + if (${1:True}) { ${0} } snippet el From 5cec4208869f663dfffb1747c6157110541bf2dc Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Mar 2015 22:31:19 +0100 Subject: [PATCH 5/7] Update sh.snippets --- snippets/sh.snippets | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index 07b57d8..de88c01 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -98,22 +98,3 @@ snippet funtitle # NAME: ${1:function_name} # DESCRIPTION: ${0:One line to give a brief description.} #============================================================================== - -snippet GPL2 - #=== LICENSE ================================================================ - # ${1:One line to give the program's name and a brief description.} - # Copyright (C) `strftime("%Y")` ${2:`g:snips_author`} - # - # This script is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public License - # along with this program; if not, see . - #============================================================================== From 5fed02a0178edfb81f3698e81803a7a30bb7fbda Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Mar 2015 22:32:12 +0100 Subject: [PATCH 6/7] Update sh.snippets --- snippets/sh.snippets | 5 ----- 1 file changed, 5 deletions(-) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index de88c01..e1555d4 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -93,8 +93,3 @@ snippet fun ${0:#function_body} } -snippet funtitle - #=== FUNCTION =============================================================== - # NAME: ${1:function_name} - # DESCRIPTION: ${0:One line to give a brief description.} - #============================================================================== From 984e63a7ee97defda6064ef38a6e89732cdcd6d3 Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Mar 2015 22:32:26 +0100 Subject: [PATCH 7/7] Update sh.snippets --- snippets/sh.snippets | 1 - 1 file changed, 1 deletion(-) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index e1555d4..4d2c62b 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -92,4 +92,3 @@ snippet fun function ${1:function_name}() { ${0:#function_body} } -