1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub struct CommandEntry {
4 pub name: &'static str,
6 pub alias: Option<&'static str>,
8}
9
10pub const COMMAND_TABLE: &[CommandEntry] = &[
13 CommandEntry {
14 name: "attach-session",
15 alias: Some("attach"),
16 },
17 CommandEntry {
18 name: "bind-key",
19 alias: Some("bind"),
20 },
21 CommandEntry {
22 name: "break-pane",
23 alias: Some("breakp"),
24 },
25 CommandEntry {
26 name: "capture-pane",
27 alias: Some("capturep"),
28 },
29 CommandEntry {
30 name: "choose-buffer",
31 alias: None,
32 },
33 CommandEntry {
34 name: "choose-client",
35 alias: None,
36 },
37 CommandEntry {
38 name: "choose-tree",
39 alias: None,
40 },
41 CommandEntry {
42 name: "clear-history",
43 alias: Some("clearhist"),
44 },
45 CommandEntry {
46 name: "clear-prompt-history",
47 alias: Some("clearphist"),
48 },
49 CommandEntry {
50 name: "clock-mode",
51 alias: None,
52 },
53 CommandEntry {
54 name: "command-prompt",
55 alias: None,
56 },
57 CommandEntry {
58 name: "confirm-before",
59 alias: Some("confirm"),
60 },
61 CommandEntry {
62 name: "copy-mode",
63 alias: None,
64 },
65 CommandEntry {
66 name: "customize-mode",
67 alias: None,
68 },
69 CommandEntry {
70 name: "delete-buffer",
71 alias: Some("deleteb"),
72 },
73 CommandEntry {
74 name: "detach-client",
75 alias: Some("detach"),
76 },
77 CommandEntry {
78 name: "display-menu",
79 alias: Some("menu"),
80 },
81 CommandEntry {
82 name: "display-message",
83 alias: Some("display"),
84 },
85 CommandEntry {
86 name: "display-popup",
87 alias: Some("popup"),
88 },
89 CommandEntry {
90 name: "display-panes",
91 alias: Some("displayp"),
92 },
93 CommandEntry {
94 name: "find-window",
95 alias: Some("findw"),
96 },
97 CommandEntry {
98 name: "has-session",
99 alias: Some("has"),
100 },
101 CommandEntry {
102 name: "if-shell",
103 alias: Some("if"),
104 },
105 CommandEntry {
106 name: "join-pane",
107 alias: Some("joinp"),
108 },
109 CommandEntry {
110 name: "kill-pane",
111 alias: Some("killp"),
112 },
113 CommandEntry {
114 name: "kill-server",
115 alias: None,
116 },
117 CommandEntry {
118 name: "kill-session",
119 alias: None,
120 },
121 CommandEntry {
122 name: "kill-window",
123 alias: Some("killw"),
124 },
125 CommandEntry {
126 name: "last-pane",
127 alias: Some("lastp"),
128 },
129 CommandEntry {
130 name: "last-window",
131 alias: Some("last"),
132 },
133 CommandEntry {
134 name: "link-window",
135 alias: Some("linkw"),
136 },
137 CommandEntry {
138 name: "list-buffers",
139 alias: Some("lsb"),
140 },
141 CommandEntry {
142 name: "list-clients",
143 alias: Some("lsc"),
144 },
145 CommandEntry {
146 name: "list-commands",
147 alias: Some("lscm"),
148 },
149 CommandEntry {
150 name: "list-keys",
151 alias: Some("lsk"),
152 },
153 CommandEntry {
154 name: "list-panes",
155 alias: Some("lsp"),
156 },
157 CommandEntry {
158 name: "list-sessions",
159 alias: Some("ls"),
160 },
161 CommandEntry {
162 name: "list-windows",
163 alias: Some("lsw"),
164 },
165 CommandEntry {
166 name: "load-buffer",
167 alias: Some("loadb"),
168 },
169 CommandEntry {
170 name: "lock-client",
171 alias: Some("lockc"),
172 },
173 CommandEntry {
174 name: "lock-server",
175 alias: Some("lock"),
176 },
177 CommandEntry {
178 name: "lock-session",
179 alias: Some("locks"),
180 },
181 CommandEntry {
182 name: "move-pane",
183 alias: Some("movep"),
184 },
185 CommandEntry {
186 name: "move-window",
187 alias: Some("movew"),
188 },
189 CommandEntry {
190 name: "new-session",
191 alias: Some("new"),
192 },
193 CommandEntry {
194 name: "new-window",
195 alias: Some("neww"),
196 },
197 CommandEntry {
198 name: "next-layout",
199 alias: Some("nextl"),
200 },
201 CommandEntry {
202 name: "next-window",
203 alias: Some("next"),
204 },
205 CommandEntry {
206 name: "paste-buffer",
207 alias: Some("pasteb"),
208 },
209 CommandEntry {
210 name: "pipe-pane",
211 alias: Some("pipep"),
212 },
213 CommandEntry {
214 name: "previous-layout",
215 alias: Some("prevl"),
216 },
217 CommandEntry {
218 name: "previous-window",
219 alias: Some("prev"),
220 },
221 CommandEntry {
222 name: "refresh-client",
223 alias: Some("refresh"),
224 },
225 CommandEntry {
226 name: "rename-session",
227 alias: Some("rename"),
228 },
229 CommandEntry {
230 name: "rename-window",
231 alias: Some("renamew"),
232 },
233 CommandEntry {
234 name: "resize-pane",
235 alias: Some("resizep"),
236 },
237 CommandEntry {
238 name: "resize-window",
239 alias: Some("resizew"),
240 },
241 CommandEntry {
242 name: "respawn-pane",
243 alias: Some("respawnp"),
244 },
245 CommandEntry {
246 name: "respawn-window",
247 alias: Some("respawnw"),
248 },
249 CommandEntry {
250 name: "rotate-window",
251 alias: Some("rotatew"),
252 },
253 CommandEntry {
254 name: "run-shell",
255 alias: Some("run"),
256 },
257 CommandEntry {
258 name: "save-buffer",
259 alias: Some("saveb"),
260 },
261 CommandEntry {
262 name: "select-layout",
263 alias: Some("selectl"),
264 },
265 CommandEntry {
266 name: "select-pane",
267 alias: Some("selectp"),
268 },
269 CommandEntry {
270 name: "select-window",
271 alias: Some("selectw"),
272 },
273 CommandEntry {
274 name: "send-keys",
275 alias: Some("send"),
276 },
277 CommandEntry {
278 name: "send-prefix",
279 alias: None,
280 },
281 CommandEntry {
282 name: "server-access",
283 alias: None,
284 },
285 CommandEntry {
286 name: "set-buffer",
287 alias: Some("setb"),
288 },
289 CommandEntry {
290 name: "set-environment",
291 alias: Some("setenv"),
292 },
293 CommandEntry {
294 name: "set-hook",
295 alias: None,
296 },
297 CommandEntry {
298 name: "set-option",
299 alias: Some("set"),
300 },
301 CommandEntry {
302 name: "set-window-option",
303 alias: Some("setw"),
304 },
305 CommandEntry {
306 name: "show-buffer",
307 alias: Some("showb"),
308 },
309 CommandEntry {
310 name: "show-environment",
311 alias: Some("showenv"),
312 },
313 CommandEntry {
314 name: "show-hooks",
315 alias: None,
316 },
317 CommandEntry {
318 name: "show-messages",
319 alias: Some("showmsgs"),
320 },
321 CommandEntry {
322 name: "show-options",
323 alias: Some("show"),
324 },
325 CommandEntry {
326 name: "show-prompt-history",
327 alias: Some("showphist"),
328 },
329 CommandEntry {
330 name: "show-window-options",
331 alias: Some("showw"),
332 },
333 CommandEntry {
334 name: "source-file",
335 alias: Some("source"),
336 },
337 CommandEntry {
338 name: "split-window",
339 alias: Some("splitw"),
340 },
341 CommandEntry {
342 name: "start-server",
343 alias: Some("start"),
344 },
345 CommandEntry {
346 name: "suspend-client",
347 alias: Some("suspendc"),
348 },
349 CommandEntry {
350 name: "swap-pane",
351 alias: Some("swapp"),
352 },
353 CommandEntry {
354 name: "swap-window",
355 alias: Some("swapw"),
356 },
357 CommandEntry {
358 name: "switch-client",
359 alias: Some("switchc"),
360 },
361 CommandEntry {
362 name: "unbind-key",
363 alias: Some("unbind"),
364 },
365 CommandEntry {
366 name: "unlink-window",
367 alias: Some("unlinkw"),
368 },
369 CommandEntry {
370 name: "wait-for",
371 alias: Some("wait"),
372 },
373];