From 12edcdebe3ef33e3a5e83d8f318950d79ddf422a Mon Sep 17 00:00:00 2001 From: Josh Lubaway Date: Sat, 31 May 2014 13:23:31 -0700 Subject: [PATCH 1/3] Interface does not conflict with the keyword `int`. When using the function snippet and declaring variables of type `int`, the Interface snippet conflicts and interrupts the current snippet: func func foo(x int) type { // body } Causes the interface snippet to kick in. --- Snippets/Interface.tmSnippet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Snippets/Interface.tmSnippet b/Snippets/Interface.tmSnippet index e77a0e1..4043d35 100644 --- a/Snippets/Interface.tmSnippet +++ b/Snippets/Interface.tmSnippet @@ -11,7 +11,7 @@ scope source.go tabTrigger - int + inte uuid 96C65CC5-19C3-4B73-A66B-F9C80B98DE54 From 50a98fda73656a3ea3f49fd304464023bc61e267 Mon Sep 17 00:00:00 2001 From: Josh Lubaway Date: Sat, 14 Jun 2014 11:56:28 -0700 Subject: [PATCH 2/3] Add a `fmt.Println` snippet --- Snippets/fmt_Println.tmSnippet | 16 ++++++++++++++++ info.plist | 1 + 2 files changed, 17 insertions(+) create mode 100644 Snippets/fmt_Println.tmSnippet diff --git a/Snippets/fmt_Println.tmSnippet b/Snippets/fmt_Println.tmSnippet new file mode 100644 index 0000000..a11899e --- /dev/null +++ b/Snippets/fmt_Println.tmSnippet @@ -0,0 +1,16 @@ + + + + + content + fmt.Println(${1:"${2:Hello World!}"})$0 + name + Print line + scope + source.go + tabTrigger + fmt + uuid + F5E717F6-A08B-4766-B1D5-0E43C796FDE1 + + diff --git a/info.plist b/info.plist index 8ea3728..508c904 100644 --- a/info.plist +++ b/info.plist @@ -95,6 +95,7 @@ 0FC09B94-D4C1-4C21-8076-EE7075174926 0E515A1F-B6F7-4473-B4C6-D6485E7CD133 4B3F378E-D9E8-4CCB-B537-96099B406511 + F5E717F6-A08B-4766-B1D5-0E43C796FDE1 name Idioms From a20d44c0e7083022b2889024353ae7b07adcd4eb Mon Sep 17 00:00:00 2001 From: Josh Lubaway Date: Sun, 22 Jun 2014 22:24:39 -0700 Subject: [PATCH 3/3] Add a fmt.Printf snippet. --- Snippets/Printf.tmSnippet | 16 ++++++++++++++++ info.plist | 1 + 2 files changed, 17 insertions(+) create mode 100644 Snippets/Printf.tmSnippet diff --git a/Snippets/Printf.tmSnippet b/Snippets/Printf.tmSnippet new file mode 100644 index 0000000..ba0f73b --- /dev/null +++ b/Snippets/Printf.tmSnippet @@ -0,0 +1,16 @@ + + + + + content + fmt.Printf(${1:"${2:Hello World!}"}, $3)$0 + name + Printf + scope + source.go + tabTrigger + fmt. + uuid + 12AC27D2-4B5D-467D-AA52-1C8AACF753E7 + + diff --git a/info.plist b/info.plist index 8ea3728..d085d9e 100644 --- a/info.plist +++ b/info.plist @@ -95,6 +95,7 @@ 0FC09B94-D4C1-4C21-8076-EE7075174926 0E515A1F-B6F7-4473-B4C6-D6485E7CD133 4B3F378E-D9E8-4CCB-B537-96099B406511 + 12AC27D2-4B5D-467D-AA52-1C8AACF753E7 name Idioms