Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added dropdown/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions dropdown/demo.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Output dropdown.gif

Set Shell "bash"
Set FontSize 14
Set Width 640
Set Height 420
Set Theme "Catppuccin Mocha"
Set Padding 20

Type "go run ./examples/dropdown"
Enter
Sleep 1s

# Open the first dropdown
Type " "
Sleep 500ms

# Navigate down twice and select "Bubbles"
Type "jj"
Sleep 300ms
Type " "
Sleep 500ms

# Reload options at runtime
Type "r"
Sleep 500ms

# Open again and pick "Rust"
Type " "
Sleep 300ms
Type "j"
Sleep 300ms
Enter
Sleep 500ms

# Tab to the disabled dropdown (no effect on input)
Type " "
Sleep 300ms
Tab
Sleep 500ms

# Tab to empty dropdown
Tab
Sleep 500ms

# Quit
Type "q"
Loading