# shuire demo tape — run with: vhs demo/demo.tape
# Regenerates demo/demo.gif. Uses testdata/sample.diff so the demo is stable
# regardless of the repo's git history.
#
# Key feature: comments written in shuire are printed to stdout on exit,
# so you can pipe them directly into AI tools for context-aware analysis:
#   shuire > review.txt && claude < review.txt
#   shuire | claude "Summarize these review notes and suggest fixes"

Output demo/demo.gif

Set FontSize 14
Set Width 1280
Set Height 760
Set Theme "Catppuccin Mocha"
Set Shell "bash"
Set TypingSpeed 50ms
Set PlaybackSpeed 1.0

Hide
Type `export PS1="$ "`
Enter
Type `shuire() { ./target/release/shuire --from-file testdata/sample.diff --clean "$@"; }`
Enter
Type "clear"
Enter
Show

# Redirect stdout to a file so the AI-ready comment output is clearly visible
Type "shuire"
Sleep 400ms
Enter
Sleep 100ms
Type "j" Sleep 110ms
Sleep 1600ms

# 1. Light scroll to show content
Type "j" Sleep 110ms
Type "j" Sleep 110ms
Type "j" Sleep 110ms
Sleep 500ms

# 2. Single-line comment
Type "i"
Sleep 400ms
Type "Press `i` to add an inline comment."
Sleep 400ms
Enter
Sleep 1500ms

# 3. Range comment via visual mode
Type "j" Sleep 100ms
Type "j" Sleep 100ms
Type "V"
Sleep 400ms
Type "j" Sleep 130ms
Type "j" Sleep 130ms
Type "j" Sleep 130ms
Type "i"
Sleep 400ms
Type "Use `V` for visual mode to comment on a range."
Sleep 400ms
Enter
Sleep 1500ms

# 4. Jump between comments
Type "P"
Sleep 700ms
Type "N"
Sleep 700ms

# 5. Search
Type "/"
Sleep 300ms
Type "fn "
Sleep 500ms
Enter
Sleep 800ms
Type "n" Sleep 600ms
Type "n" Sleep 600ms
Escape
Sleep 400ms

# 6. Next file
Tab
Sleep 900ms
Tab
Sleep 900ms

# 7. Split view
Type "s"
Sleep 1600ms
Type "j" Sleep 100ms
Type "j" Sleep 100ms
Type "j" Sleep 100ms
Sleep 600ms
Type "s"
Sleep 700ms

# 8. Theme switching
Type "T"
Sleep 900ms
Type "T"
Sleep 900ms
Type "T"
Sleep 900ms

# 9. Quit — comments are written to review.txt via stdout redirect
Type "q"
Sleep 5000ms
