-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-worktree-tui-demo.tape
More file actions
93 lines (82 loc) · 1.55 KB
/
Copy pathgit-worktree-tui-demo.tape
File metadata and controls
93 lines (82 loc) · 1.55 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
Output demo.gif
# Terminal appearance and environment
Set FontSize 24
Set FontFamily "MesloLGS NF"
Set Theme "Catppuccin Mocha"
Set Width 1800
Set Height 900
Set Padding 10
Set Margin 30
Set MarginFill "#674EFF"
Set BorderRadius 12
Set Shell zsh
# Build the app and prepare a temporary Git repo with sample branches
Hide
Type "go build -o worktree-tui ./cmd/worktree-tui"
Enter
Type `PROJ="$PWD"`
Enter
Type `TMP="$(mktemp -d -t worktree-tui-demo)"`
Enter
Type `cd "$TMP"`
Enter
Type "git init -q && git config user.name Demo && git config user.email demo@example.com"
Enter
Type "git branch -m main && printf 'one\n' > file.txt && git add file.txt && git commit -q -m 'feat: initial commit'"
Enter
Type "git branch feature/alpha && git branch feature/beta"
Enter
Type `alias worktree-tui="$PROJ/worktree-tui" && clear`
Enter
Show
# Launch the TUI in the demo repo
Type "worktree-tui"
Enter
Sleep 2200ms
# Navigate the worktree list
Down
Sleep 600ms
Down
Sleep 600ms
Up
Sleep 600ms
# Add a worktree from an existing branch (feature/alpha)
Type "a"
Sleep 700ms
Down
Sleep 500ms
Enter
Sleep 1700ms
# Back in the list, move to the newly created worktree
Down
Sleep 600ms
Down
Sleep 600ms
# Delete for real (Enter = Yes)
Type "d"
Sleep 900ms
Enter
Sleep 1700ms
# Create a brand-new branch + worktree via inline input
Type "a"
Sleep 700ms
Type "n"
Sleep 500ms
Type "demo-branch"
Sleep 500ms
Enter
Sleep 1700ms
# Remove the demo branch worktree to keep things tidy
Down
Sleep 500ms
Down
Sleep 500ms
Type "d"
Sleep 900ms
Enter
Sleep 1700ms
# Quit
Type "q"
Sleep 900ms
# Done
Sleep 600ms