-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdemo.tape
More file actions
223 lines (205 loc) · 3.76 KB
/
demo.tape
File metadata and controls
223 lines (205 loc) · 3.76 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
# VHS Demo Tape for zsh-vi-man
# Run: vhs demo.tape
# https://github.com/TunaCuma/zsh-vi-man
Output demo.gif
Set Shell zsh
Set FontSize 18
Set Width 900
Set Height 500
Set Padding 20
Set TypingSpeed 60ms
# Source zshrc (hidden from demo)
Hide
Type "source ~/.zshrc"
Enter
Type "clear"
Enter
Sleep 2s
Show
# ============================================
# Demo 1: Basic short option (-l)
# ============================================
Sleep 1s
Type "# Press K on an option to jump to its man page entry"
Sleep 2s
Ctrl+Space
Sleep 500ms
Type "ls -la"
Sleep 1.5s
Ctrl+C
Sleep 300ms
# Move to -s and press K
Set TypingSpeed 200ms
Type "h"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
# Navigate in man page
Set TypingSpeed 200ms
Type "n"
Sleep 400ms
Type "n"
Sleep 400ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 2: Long option (--recursive)
# ============================================
Type "i"
Type "# Works with long options too"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "grep --recursive pattern ."
Sleep 1.5s
Ctrl+C
Sleep 300ms
# Move to --recursive
Set TypingSpeed 200ms
Type "Bhh"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
Set TypingSpeed 200ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 3: Git subcommand support
# ============================================
Type "i"
Type "# Supports subcommands like git-commit"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "git commit --amend"
Sleep 1.5s
Ctrl+C
Sleep 300ms
Set TypingSpeed 200ms
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
Set TypingSpeed 200ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 4: Piped commands
# ============================================
Type "i"
Type "# Detects correct command in pipes"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "find . | grep -i pattern"
Sleep 1.5s
Ctrl+C
Sleep 300ms
# Cursor is on -i, should open grep man page
Set TypingSpeed 200ms
Type "bb"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
Set TypingSpeed 200ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 5: find-style options (-name)
# ============================================
Type "i"
Type "# Handles find-style single-dash long options"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "find . -name '*.txt' -type f"
Sleep 1.5s
Ctrl+C
Sleep 300ms
# Move to -name
Set TypingSpeed 200ms
Type "BBhh"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
Set TypingSpeed 200ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 6: Option with value (--color=always)
# ============================================
Type "i"
Type "# Extracts option from --option=value"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "ls --color=always"
Sleep 1.5s
Ctrl+C
Sleep 300ms
Set TypingSpeed 200ms
Type "bhh"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
Set TypingSpeed 200ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Demo 7: Combined options (-rf)
# ============================================
Type "i"
Type "# Combined options find individual entries"
Sleep 1.5s
Ctrl+Space
Sleep 500ms
Type "rm -rf /tmp/test"
Sleep 1.5s
Ctrl+C
Sleep 300ms
Set TypingSpeed 200ms
Type "Bhh"
Sleep 200ms
Type "K"
Set TypingSpeed 60ms
Sleep 2.5s
# Shows both -r and -f matches
Set TypingSpeed 200ms
Type "n"
Sleep 500ms
Type "q"
Set TypingSpeed 60ms
Sleep 1s
Ctrl+Space
Sleep 500ms
# ============================================
# Outro
# ============================================
Type "i"
Type "# zsh-vi-man: Smart man page lookup for vi mode"
Sleep 2s
Ctrl+Space
Sleep 3s