1
0
mirror of https://github.com/Morantron/tmux-fingers.git synced 2024-07-02 08:21:00 +02:00
tmux-fingers/test/specs/matches-custom-patterns_spec.sh

27 lines
550 B
Bash
Raw Normal View History

2017-04-19 19:46:00 +02:00
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $CURRENT_DIR/../tmuxomatic.sh
source $CURRENT_DIR/../helpers.sh
tmuxomatic__begin begin_hook
begin_with_conf "custom-patterns"
init_pane
tmuxomatic__exec "cat ./test/fixtures/custom-patterns"
tmuxomatic send-keys "echo yanked text is "
invoke_fingers
tmuxomatic send-keys "i"
tmux_paste
invoke_fingers
tmuxomatic send-keys "o"
tmux_paste
tmuxomatic send-keys Enter
tmuxomatic__expect "yanked text is W00TW00TW00TYOLOYOLOYOLO"
tmuxomatic__end end_hook