-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdemo.tape
More file actions
279 lines (240 loc) · 3.78 KB
/
Copy pathdemo.tape
File metadata and controls
279 lines (240 loc) · 3.78 KB
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# tdx demo - Your todos, in markdown, done fast
# Run with: vhs demo.tape
Output assets/demo-0.11.0.gif
Require tdx
Set Shell "bash"
Set FontSize 26
Set Width 1200
Set Height 700
Set Theme "TokyoNight"
Set TypingSpeed 40ms
Set Padding 20
Set WindowBar Colorful
Set BorderRadius 8
Set Margin 10
Set MarginFill "#1a1b26"
Set CursorBlink false
# Setup: Create a demo todo file with sections, tags, and priorities
Hide
Type "rm -f demo_todo.md"
Enter
Type "cat > demo_todo.md << 'EOF'"
Enter
Type "# Project Tasks"
Enter
Enter
Type "## Backend"
Enter
Type "- [ ] Fix security vulnerability !p1 #backend #urgent @due(2025-11-28)"
Enter
Type "- [ ] Set up CI/CD pipeline !p2 #devops @due(2025-12-05)"
Enter
Type "- [ ] Write unit tests #testing"
Enter
Type "- [x] Initialize repository #setup"
Enter
Enter
Type "## Frontend"
Enter
Type "- [ ] Update documentation !p3 #docs @due(2025-12-15)"
Enter
Type "- [ ] Add error handling !p1 #bugfix #urgent @due(2025-11-29)"
Enter
Type "- [x] Design mockups #design"
Enter
Enter
Type "## DevOps"
Enter
Type "- [ ] Configure monitoring !p2 #devops @due(2025-12-01)"
Enter
Type "- [ ] Set up staging env #devops"
Enter
Type "EOF"
Enter
Sleep 300ms
Type "clear"
Enter
Sleep 300ms
Show
# Start the demo with a title
Type@60ms "# tdx - Your todos, in markdown, done fast"
Sleep 1.5s
Enter
Sleep 800ms
# Launch TUI
Type "tdx demo_todo.md"
Sleep 400ms
Enter
Sleep 1.5s
# Navigate with j/k - notice priority colors
Type "j"
Sleep 400ms
Type "j"
Sleep 400ms
Type "j"
Sleep 400ms
# Vim-style jump with number
Type "2k"
Sleep 1s
# Jump to last item with G
Type "G"
Sleep 1s
# Jump to first item with gg
Type "gg"
Sleep 1s
# Toggle completion with space
Space
Sleep 1s
# Navigate and toggle another
Type "jj"
Sleep 400ms
Space
Sleep 1s
# Add new todo with priority
Type "n"
Sleep 600ms
Type@50ms "Implement caching layer !p2 #backend"
Sleep 400ms
Enter
Sleep 1s
# Priority filtering - show only p1 tasks
Type "p"
Sleep 800ms
Space
Sleep 1s
# Show p1 tasks are filtered - navigate
Type "j"
Sleep 500ms
Type "j"
Sleep 800ms
# Clear priority filter
Type "p"
Sleep 500ms
Type "c"
Sleep 500ms
Escape
Sleep 1s
# Sort by priority
Type ":"
Sleep 500ms
Type@60ms "sort-priority"
Sleep 600ms
Enter
Sleep 1.2s
# Undo the sort
Type "u"
Sleep 1s
# Tag filtering - show #urgent tasks
Type "t"
Sleep 800ms
Type "j"
Sleep 400ms
Space
Sleep 1s
# Clear tag filter
Type "t"
Sleep 500ms
Type "c"
Sleep 500ms
Escape
Sleep 1s
# Due date filtering - show overdue/upcoming tasks
Type "D"
Sleep 800ms
Type "j"
Sleep 400ms
Enter
Sleep 1s
# Sort by due date
Type ":"
Sleep 500ms
Type@60ms "sort-due"
Sleep 600ms
Enter
Sleep 1.2s
# Clear due filter
Type "D"
Sleep 500ms
Type "c"
Sleep 500ms
Escape
Sleep 1s
# Fuzzy search
Type "/"
Sleep 600ms
Type@60ms "error"
Sleep 1s
Enter
Sleep 1s
# Nested tasks - indent with Tab
Type "gg"
Sleep 400ms
Type "jjj"
Sleep 400ms
Type "n"
Sleep 500ms
Type@50ms "Configure nginx"
Enter
Sleep 600ms
Tab
Sleep 800ms
# Outdent with Shift+Tab
Shift+Tab
Sleep 1s
# Move mode - move task
Type "m"
Sleep 600ms
Type "jj"
Sleep 600ms
Enter
Sleep 1s
# Theme picker - live preview
Type ":"
Sleep 500ms
Type@60ms "theme"
Sleep 600ms
Enter
Sleep 1s
# Navigate themes with live preview
Type "j"
Sleep 800ms
Type "j"
Sleep 800ms
Type "j"
Sleep 800ms
# Cancel and restore original theme
Escape
Sleep 1s
# Copy to clipboard
Type "c"
Sleep 1s
# Show help menu
Type "?"
Sleep 2.5s
Escape
Sleep 600ms
# Exit TUI
Escape
Sleep 1s
# Show CLI commands
Type@60ms "# CLI commands work too!"
Enter
Sleep 800ms
Type "tdx demo_todo.md list"
Enter
Sleep 1.5s
Type "tdx demo_todo.md add 'Review pull requests !p2 #review'"
Enter
Sleep 1s
Type "tdx demo_todo.md toggle 1"
Enter
Sleep 1s
# Final message
Type@60ms "# Fast. Vim-style. Priorities. Due dates. Themes."
Enter
Sleep 2.5s
# Cleanup
Hide
Type "rm -f demo_todo.md"
Enter
Show