2024-11-14 11:20:47 +00:00
|
|
|
#RUN: %fish %s
|
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
|
|
|
isolated-tmux-start
|
|
|
|
isolated-tmux send-keys 'echo "foo bar baz"' Enter C-l
|
|
|
|
isolated-tmux send-keys 'echo '
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux send-keys M-Right
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: prompt 1> echo "foo bar baz"
|
|
|
|
tmux-sleep
|
2025-01-03 11:15:55 +00:00
|
|
|
|
|
|
|
touch COMPL
|
|
|
|
|
|
|
|
# Regression test.
|
|
|
|
isolated-tmux send-keys C-u C-l ': sometoken' M-b c
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: prompt 1> : csometoken
|
|
|
|
|
|
|
|
# Test that we get completion autosuggestions also when the cursor is not at EOL.
|
|
|
|
isolated-tmux send-keys C-u 'complete nofilecomp -f' Enter C-l 'nofilecomp ./CO' C-a M-d :
|
|
|
|
tmux-sleep
|
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# CHECK: prompt 2> : ./COMPL
|