mirror of
https://github.com/obra/superpowers.git
synced 2026-07-10 03:59:04 +08:00
fix(skills): restore interleaved sleeps in TUI form-fill recipe
This commit is contained in:
@@ -33,11 +33,19 @@ tmux kill-session -t <name> 2>/dev/null # idempotent: fine if nothing to kill
|
||||
`-l` for literal text. A typical field-by-field fill mixes both:
|
||||
|
||||
```bash
|
||||
tmux send-keys -t <name> BTab # shift-tab to a prior field
|
||||
tmux send-keys -t <name> "n" # tap a key to open the form
|
||||
sleep 1
|
||||
tmux send-keys -t <name> BTab # shift-tab back one field
|
||||
sleep 0.3
|
||||
tmux send-keys -t <name> C-u # clear the current line
|
||||
sleep 0.3
|
||||
tmux send-keys -t <name> -l "some/literal/path" # literal — no key parsing
|
||||
tmux send-keys -t <name> Tab # forward to the next field
|
||||
tmux send-keys -t <name> Enter
|
||||
sleep 0.3
|
||||
tmux send-keys -t <name> Tab # forward to next field
|
||||
sleep 0.3
|
||||
tmux send-keys -t <name> -l "text the user would type"
|
||||
sleep 0.3
|
||||
tmux send-keys -t <name> Enter # submit
|
||||
```
|
||||
|
||||
`sleep 0.3` between keys is usually enough; bump to 0.5–1.0s for field
|
||||
|
||||
Reference in New Issue
Block a user