-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.schema.yaml
251 lines (251 loc) · 6.09 KB
/
config.schema.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
$id: "http://example.com/config.schema.yaml"
type: object
title: The tmux-which-key plugin configuration
$defs:
item:
type: object
title: The item config
oneOf:
- type: object
title: A submenu
required:
- name
- key
- menu
properties:
name:
type: string
title: The submenu name
examples:
- +My menu
key:
type: string
title: The key that opens this submenu
examples:
- C-m
menu:
type: array
title: The submenu items
items:
$ref: "#/$defs/item"
examples: []
examples:
- name: Last pane
key: Space
command: last-pane
- type: object
title: A macro defined by the user
required:
- name
- key
- macro
properties:
name:
type: string
title: The item name
examples:
- My macro
key:
type: string
title: The key that triggers this macro
examples:
- M
macro:
type: string
title: The macro to run
examples:
- my-macro
transient:
type: boolean
default: false
title: >-
Whether the menu stays open after running this item (transient
keybinding)
examples:
- false
- true
examples:
- name: My macro
key: M
command: my-macro
- type: object
title: A command
required:
- name
- key
- command
properties:
name:
type: string
title: The item name
examples:
- Last pane
key:
type: string
title: The key that triggers this command
examples:
- Space
command:
type: string
title: The command to run
examples:
- last-pane
transient:
type: boolean
default: false
title: >-
Whether the menu stays open after running this item (transient
keybinding)
examples:
- name: Last pane
key: Space
command: last-pane
- type: object
title: A menu separator
required:
- separator
properties:
separator:
type: boolean
default: true
title: Whether the item is a separator
examples:
- separator: true
required:
- command_alias_start_index
- keybindings
- items
properties:
command_alias_start_index:
type: integer
default: 200
minimum: 200
title: >-
The starting index to use for the command-alias option, used for macros
(required). This value must be at least 200
examples:
- 200
keybindings:
type: object
default:
prefix_table: Space
root_table: C-Space
title: The keybindings that open the which-key menu
required:
- prefix_table
properties:
prefix_table:
type: string
default: Space
title: The keybinding for the prefix key table
examples:
- Space
root_table:
type: string
default: C-Space
title: The keybinding for the root key table
examples:
- C-Space
examples:
- prefix_table: Space
root_table: C-Space
title:
type: object
title: The menu title config (optional)
properties:
style:
type: string
title: The title style
examples:
- "align=centre,bold"
prefix:
type: string
default: tmux
title: A prefix added to every menu title
examples:
- tmux
prefix_style:
type: string
title: The style of the title prefix
examples:
- "fg=green,align=centre,bold"
examples:
- style: "align=centre,bold"
prefix: tmux
prefix_style: "fg=green,align=centre,bold"
position:
type: object
default:
x: R
y: P
title: The menu position (optional)
properties:
x:
type: string
default: R
title: The x location of the menu
enum: [C, R, P, M, W]
examples:
- R
y:
type: string
default: P
title: The y location of the menu
enum: [C, P, M, W, S]
examples:
- P
examples:
- x: R
y: P
custom_variables:
type: array
title:
tmux-only environment variables that can be used in commands and macros
properties:
name:
type: string
title: The environment variable name
value:
type: string
title: The environment variable value
examples:
- my_env_var: my_value
examples:
- - my_env_var: my_value
macros:
type: array
title: The user macros
properties:
name:
type: string
title: The macro name
examples:
- my-macro
commands:
type: array
title: The macro commands
items:
type: string
title: A command value
examples:
- source-file $HOME/.tmux.conf
examples:
- - 'display "[info] Loading config... "'
- source-file $HOME/.tmux.conf
- 'display -p "[info] Done\n\n... Press <Enter> to close"'
- 'display "[info] Config loaded "'
examples:
- reload-config:
- 'display "[log_info] Loading config... "'
- source-file $HOME/.tmux.conf
- 'display -p "[info] Done\n\n... Press <Enter> to close"'
- 'display "[log_info] Config loaded "'
items:
type: array
title: The menu items
items:
$ref: "#/$defs/item"
examples:
- - name: My command
key: Space
command: next-pane