turbo-editors/turbo-gopublic Fork 0
145937ab1c0750b59c3b2770fac6c2875b5eec4d
Commits
Clone
git clone https://git.rickub.com/turbo-editors/turbo-go.git
git clone ssh://git@rickub.com/turbo-editors/turbo-go.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

snippets.toml · 60 lines · 1.2 KBTOML Blame HistoryRaw
📦 Turbo Go 3d7798b k33g 23h ago1# turbo-go snippets.
2#
3# Each [[snippet]] becomes one line of the Snippets menu. Snippets sharing a
4# group appear together in a submenu of that name; one with no group goes into
5# General. A snippet is inserted at the cursor, and every line after the
6# first is indented to match the line you inserted it on.
7#
8# languages restricts a snippet to files of those kinds, by the names the
9# editor uses: go, toml, markdown, javascript, html, bash. Leave it out and the
10# snippet is offered everywhere.
11#
12# Your own snippets, shared across every project, go in:
13# /Users/k33g/Library/Application Support/turbo-go/snippets.toml
14
15[[snippet]]
16name = "if err != nil"
17group = "Go"
18languages = ["go"]
19body = """
20if err != nil {
21\treturn err
22}"""
23
24[[snippet]]
25name = "table test"
26group = "Go"
27languages = ["go"]
28body = """
29for _, test := range tests {
30\tt.Run(test.name, func(t *testing.T) {
31\t})
32}"""
33
34[[snippet]]
35name = "strict mode"
36group = "Shell"
37languages = ["bash"]
38body = "set -euo pipefail"
39
40[[snippet]]
41name = "details block"
42group = "Markdown"
43languages = ["markdown"]
44body = """
45<details>
46<summary></summary>
47
48</details>"""
49
50[[snippet]]
51name = "TODO"
52body = "TODO: "
53
54[[snippet]]
55name = "Hello World"
56body = """Hello
57World
58With Bob Morane
59"""
60