Skip to content

Commit

Permalink
Merge pull request #14 from andorsk/tweaks
Browse files Browse the repository at this point in the history
added snippets
  • Loading branch information
andorsk authored Nov 28, 2022
2 parents f22a5d6 + a59e198 commit 23311a8
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snippets/classes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# name: class
# uuid: class
# group: d2
# key: trigger-key
# condition: t
# --
My Class {
shape: class
+field: string
read()
}
13 changes: 13 additions & 0 deletions snippets/code
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: table
# uuid: table
# group: d2
# key: trigger-key
# condition: t
# --
A: |`go
func() {
fmt.Println("hello")
}()
`
11 changes: 11 additions & 0 deletions snippets/container
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: container
# uuid: container
# group: d2
# key: trigger-key
# condition: t
# --
A {
B
shape: circle
}
13 changes: 13 additions & 0 deletions snippets/markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: markdown
# uuid: markdown
# group: d2
# key: trigger-key
# condition: t
# --

a: |`
# Header
- This text
- Next text
`
8 changes: 8 additions & 0 deletions snippets/node-transition
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: node-transition
# uuid: node-transition
# group: d2
# key: trigger-key
# condition: t
# --
A -> B : message
14 changes: 14 additions & 0 deletions snippets/table
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: table
# uuid: table
# group: d2
# key: trigger-key
# condition: t
# --
My Table {
shape: sql_table

id: int { constraint: primary_key }
frame: int {constraint: foreign_key}

}

0 comments on commit 23311a8

Please sign in to comment.