-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yml
78 lines (78 loc) · 1.35 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
global_vars:
- name: global
type: echo
params:
echo: hello from global vars
matches:
- trigger: global_test
replace: Global var test {{global}}
- trigger: :date
replace: '{{date}}'
vars:
- name: date
type: date
params:
format: dd/MM/%y
- trigger: :cursor
replace: '<div>$|$</div>'
- trigger: :yesterday
replace: '{{date}}'
vars:
- name: date
type: date
params:
format: dd/MM/%y
offset: -86400
- trigger: :time
replace: '{{time}}'
vars:
- name: time
type: date
params:
format: HH:mm
- trigger: :rand
replace: '{{random_choice}}'
vars:
- name: random_choice
type: random
params:
choices:
- "hello"
- "hi"
- trigger: dateandtime
replace: 'date: {{date}} time: {{time}}'
vars:
- name: date
type: date
params:
format: dd/MM/%y
- name: time
type: date
params:
format: HH:mm
- trigger: :bform
form: |
Hey [[name]],
[[text]]
Happy Birthday!
form_fields:
text:
multiline: true
- trigger: :choice
form: |
[[choices]]
form_fields:
choices:
type: choice
values:
- First choice
- Second choice
- trigger: ":list"
form: |
[[choices]]
form_fields:
choices:
type: list
values:
- First choice
- Second choice