vhs
vhs copied to clipboard
support `ctrl` + arrow keys
ctrl+left, ctrl+right, ctrl+up, ctrl+down
Examples:
1. word navigation: ctrl+left / ctrl+right
Output examples/ctrl.gif
Set Shell bash
Set Width 800
Set Height 200
Set FontSize 32
# Test Ctrl+Left and Ctrl+Right (word navigation in bash)
Type@10ms "echo 'How are you?'"
Sleep 500ms
Ctrl+Left
Sleep 300ms
Ctrl+Left
Sleep 300ms
Ctrl+Left
Sleep 300ms
Ctrl+Right
Sleep 300ms
Ctrl+Right
Sleep 300ms
Ctrl+Right
Sleep 300ms
2. command history: ctrl+up / ctrl+down
Output examples/ctrl2.gif
Set Width 800
Set Height 400
Set FontSize 32
Set Shell zsh
# Test Ctrl+Up and Ctrl+Down (command history in zsh)
# Setup keybindings
Hide
Type "bindkey '^[[1;5A' up-line-or-history && bindkey '^[[1;5B' down-line-or-history && clear"
Enter
Show
# type commands
Type@10ms "echo '1. command'"
Enter
Type@10ms "echo '2. command'"
Enter
Type@10ms "echo '3. command'"
Enter
Sleep 300ms
# history back
Ctrl+Up
Sleep 300ms
Ctrl+Up
Sleep 300ms
Ctrl+Up
Sleep 300ms
# history forward
Ctrl+Down
Sleep 300ms
Ctrl+Down
Sleep 300ms
Ctrl+Down
Sleep 300ms
- [x] I have read
CONTRIBUTING.md. - [ ] I have created a discussion that was approved by a maintainer (for new features).
@meowgorithm or @tauraamui or @andreynering Any chance to review / merge this PR? It's been a while ...