practicode 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,249 @@
1
+ #[derive(Clone, Copy)]
2
+ pub(super) struct CommandHint {
3
+ pub(super) insert: &'static str,
4
+ pub(super) display: &'static str,
5
+ pub(super) desc_key: &'static str,
6
+ pub(super) keep_open: bool,
7
+ pub(super) help: bool,
8
+ }
9
+
10
+ pub(super) const COMMAND_HINTS: &[CommandHint] = &[
11
+ CommandHint {
12
+ insert: "run",
13
+ display: "/run",
14
+ desc_key: "cmd_run",
15
+ keep_open: false,
16
+ help: true,
17
+ },
18
+ CommandHint {
19
+ insert: "code",
20
+ display: "/code",
21
+ desc_key: "cmd_code",
22
+ keep_open: false,
23
+ help: true,
24
+ },
25
+ CommandHint {
26
+ insert: "next",
27
+ display: "/next",
28
+ desc_key: "cmd_next",
29
+ keep_open: false,
30
+ help: true,
31
+ },
32
+ CommandHint {
33
+ insert: "generate ",
34
+ display: "/generate <request>",
35
+ desc_key: "cmd_generate",
36
+ keep_open: true,
37
+ help: true,
38
+ },
39
+ CommandHint {
40
+ insert: "back",
41
+ display: "/back",
42
+ desc_key: "cmd_prev",
43
+ keep_open: false,
44
+ help: true,
45
+ },
46
+ CommandHint {
47
+ insert: "problems",
48
+ display: "/problems",
49
+ desc_key: "cmd_list",
50
+ keep_open: false,
51
+ help: true,
52
+ },
53
+ CommandHint {
54
+ insert: "open ",
55
+ display: "/open <id>",
56
+ desc_key: "cmd_open",
57
+ keep_open: true,
58
+ help: true,
59
+ },
60
+ CommandHint {
61
+ insert: "answer",
62
+ display: "/answer",
63
+ desc_key: "cmd_giveup",
64
+ keep_open: false,
65
+ help: true,
66
+ },
67
+ CommandHint {
68
+ insert: "hint ",
69
+ display: "/hint <request>",
70
+ desc_key: "cmd_hint",
71
+ keep_open: true,
72
+ help: true,
73
+ },
74
+ CommandHint {
75
+ insert: "profile",
76
+ display: "/profile",
77
+ desc_key: "cmd_profile",
78
+ keep_open: false,
79
+ help: true,
80
+ },
81
+ CommandHint {
82
+ insert: "difficulty auto",
83
+ display: "/difficulty auto",
84
+ desc_key: "cmd_difficulty",
85
+ keep_open: false,
86
+ help: true,
87
+ },
88
+ CommandHint {
89
+ insert: "difficulty easy",
90
+ display: "/difficulty easy",
91
+ desc_key: "cmd_difficulty",
92
+ keep_open: false,
93
+ help: false,
94
+ },
95
+ CommandHint {
96
+ insert: "difficulty medium",
97
+ display: "/difficulty medium",
98
+ desc_key: "cmd_difficulty",
99
+ keep_open: false,
100
+ help: false,
101
+ },
102
+ CommandHint {
103
+ insert: "difficulty hard",
104
+ display: "/difficulty hard",
105
+ desc_key: "cmd_difficulty",
106
+ keep_open: false,
107
+ help: false,
108
+ },
109
+ CommandHint {
110
+ insert: "topics ",
111
+ display: "/topics <list>",
112
+ desc_key: "cmd_topics",
113
+ keep_open: true,
114
+ help: true,
115
+ },
116
+ CommandHint {
117
+ insert: "avoid ",
118
+ display: "/avoid <list>",
119
+ desc_key: "cmd_avoid",
120
+ keep_open: true,
121
+ help: true,
122
+ },
123
+ CommandHint {
124
+ insert: "provider codex",
125
+ display: "/provider codex",
126
+ desc_key: "cmd_provider",
127
+ keep_open: false,
128
+ help: true,
129
+ },
130
+ CommandHint {
131
+ insert: "provider claude",
132
+ display: "/provider claude",
133
+ desc_key: "cmd_provider",
134
+ keep_open: false,
135
+ help: false,
136
+ },
137
+ CommandHint {
138
+ insert: "model auto",
139
+ display: "/model auto",
140
+ desc_key: "cmd_model_auto",
141
+ keep_open: false,
142
+ help: true,
143
+ },
144
+ CommandHint {
145
+ insert: "model ",
146
+ display: "/model <name>",
147
+ desc_key: "cmd_model_custom",
148
+ keep_open: true,
149
+ help: false,
150
+ },
151
+ CommandHint {
152
+ insert: "language python",
153
+ display: "/language python",
154
+ desc_key: "cmd_lang",
155
+ keep_open: false,
156
+ help: true,
157
+ },
158
+ CommandHint {
159
+ insert: "language ts",
160
+ display: "/language ts",
161
+ desc_key: "cmd_lang",
162
+ keep_open: false,
163
+ help: false,
164
+ },
165
+ CommandHint {
166
+ insert: "language java",
167
+ display: "/language java",
168
+ desc_key: "cmd_lang",
169
+ keep_open: false,
170
+ help: false,
171
+ },
172
+ CommandHint {
173
+ insert: "language rust",
174
+ display: "/language rust",
175
+ desc_key: "cmd_lang",
176
+ keep_open: false,
177
+ help: false,
178
+ },
179
+ CommandHint {
180
+ insert: "ui en",
181
+ display: "/ui en",
182
+ desc_key: "cmd_ui",
183
+ keep_open: false,
184
+ help: true,
185
+ },
186
+ CommandHint {
187
+ insert: "ui ko",
188
+ display: "/ui ko",
189
+ desc_key: "cmd_ui",
190
+ keep_open: false,
191
+ help: false,
192
+ },
193
+ CommandHint {
194
+ insert: "ui ja",
195
+ display: "/ui ja",
196
+ desc_key: "cmd_ui",
197
+ keep_open: false,
198
+ help: false,
199
+ },
200
+ CommandHint {
201
+ insert: "ui zh",
202
+ display: "/ui zh",
203
+ desc_key: "cmd_ui",
204
+ keep_open: false,
205
+ help: false,
206
+ },
207
+ CommandHint {
208
+ insert: "ui es",
209
+ display: "/ui es",
210
+ desc_key: "cmd_ui",
211
+ keep_open: false,
212
+ help: false,
213
+ },
214
+ CommandHint {
215
+ insert: "theme dark",
216
+ display: "/theme dark",
217
+ desc_key: "cmd_theme",
218
+ keep_open: false,
219
+ help: true,
220
+ },
221
+ CommandHint {
222
+ insert: "theme light",
223
+ display: "/theme light",
224
+ desc_key: "cmd_theme",
225
+ keep_open: false,
226
+ help: false,
227
+ },
228
+ CommandHint {
229
+ insert: "update",
230
+ display: "/update",
231
+ desc_key: "cmd_update",
232
+ keep_open: false,
233
+ help: true,
234
+ },
235
+ CommandHint {
236
+ insert: "help",
237
+ display: "/help",
238
+ desc_key: "cmd_help",
239
+ keep_open: false,
240
+ help: true,
241
+ },
242
+ CommandHint {
243
+ insert: "exit",
244
+ display: "/exit",
245
+ desc_key: "cmd_exit",
246
+ keep_open: false,
247
+ help: true,
248
+ },
249
+ ];