-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.tape
More file actions
80 lines (71 loc) · 1.78 KB
/
Copy pathdemo.tape
File metadata and controls
80 lines (71 loc) · 1.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
# fishez README demo. Record with:
# cargo build --release
# eval "$(TMPDIR=/tmp bash scripts/demo_setup.sh)" # short path keeps the header clean
# FISHEZ_BIN=/tmp/fishez_target/release/fishez vhs demo.tape
# Requires vhs + ttyd, bat (highlighted previews), and edit (the editor demo:
# brew install edit). vhs cannot send F-keys, so the tape uses the Ctrl
# aliases (Ctrl+P quick view, Ctrl+O editor).
Output demo.gif
Set Shell bash
Set FontSize 20
Set Width 1200
Set Height 700
Set Padding 16
Set Theme "Catppuccin Mocha"
Set TypingSpeed 60ms
Hide
Type `export FISHEZ_BIN="${FISHEZ_BIN:-fishez}"`
Enter
Type `mkdir -p /tmp/fishez-demo-bin && ln -sf "$FISHEZ_BIN" /tmp/fishez-demo-bin/fishez && export PATH="/tmp/fishez-demo-bin:$PATH"`
Enter
Type `export HOME=$(mktemp -d)`
Enter
# NO_COLOR (inherited from the recording user's shell) makes crossterm strip
# all colors — the TUI records monochrome. TERM/COLORTERM are already correct.
Type "unset NO_COLOR; export BAT_THEME=TwoDark"
Enter
Type `eval "$($FISHEZ_BIN --init)"`
Enter
Type "export EDITOR=edit"
Enter
Type "clear"
Enter
Show
# --- Launch with fz; first typed key dismisses onboarding and filters ---
Type "fz $FISHEZ_DEMO_DIR"
Sleep 300ms
Enter
Sleep 2s
# --- Star feature 1: type-to-filter, letter by letter ---
Type@200ms "src"
Sleep 800ms
Enter
Sleep 600ms
# --- Star feature 2: quick view with syntax highlighting, flip files ---
Down
Sleep 400ms
Ctrl+P
Sleep 1.6s
Right
Sleep 1.6s
Ctrl+P
Sleep 500ms
# --- Search project contents with ripgrep ---
Ctrl+R
Sleep 500ms
Type "parse"
Sleep 700ms
Enter
Sleep 1s
# --- Open the match in $EDITOR (suspends the TUI), then quit back ---
Ctrl+O
Sleep 1.8s
Ctrl+Q
Sleep 800ms
# --- Quit; fz drops the shell in the browsed directory ---
Escape
Sleep 600ms
Type "pwd"
Sleep 300ms
Enter
Sleep 2s