106 lines
1.5 KiB
VHS
106 lines
1.5 KiB
VHS
# improvise demo — formulas, command mode, drill, records, and axis reassignment
|
|
# Run: nix develop --command vhs docs/demo.tape
|
|
|
|
Output docs/demo.gif
|
|
|
|
Set FontSize 14
|
|
Set Width 1440
|
|
Set Height 800
|
|
Set Theme "Dracula"
|
|
|
|
# Hide the shell prompt and startup
|
|
Hide
|
|
Type "./result/bin/improvise examples/demo.improv"
|
|
Enter
|
|
Sleep 2s
|
|
Show
|
|
|
|
# Show the initial pivot view
|
|
Sleep 2s
|
|
|
|
# Prune empty rows for a cleaner view
|
|
Type "P"
|
|
Sleep 2s
|
|
|
|
# Open formula panel — show existing Profit formula
|
|
Type "F"
|
|
Sleep 2s
|
|
|
|
# Add a Margin formula
|
|
Type "n"
|
|
Sleep 500ms
|
|
Type "Margin = 100 * Profit / Revenue"
|
|
Sleep 1s
|
|
Enter
|
|
Sleep 2s
|
|
|
|
# Close formula panel
|
|
Escape
|
|
Sleep 2s
|
|
|
|
# Use command mode to hide Date_Month (collapse time dimension)
|
|
Type ":"
|
|
Sleep 800ms
|
|
Type "set-axis Date_Month none"
|
|
Sleep 1500ms
|
|
Enter
|
|
Sleep 2s
|
|
|
|
# Drill into a Revenue cell to see individual records
|
|
# Navigate down to a row with data
|
|
Type "jjj"
|
|
Sleep 500ms
|
|
# Drill
|
|
Type ">"
|
|
Sleep 2s
|
|
|
|
# Browse the drill records
|
|
Type "jj"
|
|
Sleep 1s
|
|
|
|
# Go back
|
|
Type "<"
|
|
Sleep 2s
|
|
|
|
# Toggle records mode to see flat record view
|
|
Type "R"
|
|
Sleep 2s
|
|
|
|
# Scroll through records
|
|
Type "jjjjj"
|
|
Sleep 1s
|
|
|
|
# Back to pivot mode
|
|
Type "R"
|
|
Sleep 2s
|
|
|
|
# Enter tile mode to reassign axes
|
|
Type "T"
|
|
Sleep 1s
|
|
|
|
# Navigate to Region tile
|
|
Type "lllll"
|
|
Sleep 800ms
|
|
|
|
# Move Region from Row to Column
|
|
Type "c"
|
|
Sleep 2s
|
|
|
|
# Navigate back to Customer tile
|
|
Type "hhh"
|
|
Sleep 600ms
|
|
|
|
# Move Customer from Page to Row
|
|
Type "r"
|
|
Sleep 2s
|
|
|
|
# Exit tile mode
|
|
Escape
|
|
Sleep 2s
|
|
|
|
# Quit without recording the exit
|
|
Hide
|
|
Type ":q!"
|
|
Enter
|
|
Sleep 500ms
|