2021-08-29 15:44:22 +08:00
|
|
|
#RUN: %fish %s
|
2021-03-21 16:25:29 +08:00
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
2021-09-24 23:07:17 +08:00
|
|
|
isolated-tmux-start
|
2021-03-21 16:25:29 +08:00
|
|
|
|
|
|
|
# Don't escape existing token (#7526).
|
|
|
|
echo >file-1
|
|
|
|
echo >file-2
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux send-keys 'HOME=$PWD ls ~/' Tab
|
2021-09-24 23:07:17 +08:00
|
|
|
tmux-sleep
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux capture-pane -p
|
2021-04-12 09:13:39 +08:00
|
|
|
# Note the contents may or may not have the autosuggestion appended - it is a race.
|
|
|
|
# CHECK: prompt 0> HOME=$PWD ls ~/file-{{1?}}
|
2021-03-21 16:25:29 +08:00
|
|
|
# CHECK: ~/file-1 ~/file-2
|
|
|
|
|
|
|
|
# No pager on single smartcase completion (#7738).
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux send-keys C-u C-l 'mkdir cmake CMakeFiles' Enter C-l \
|
2021-03-21 16:25:29 +08:00
|
|
|
'cat cmake' Tab
|
2021-09-24 23:07:17 +08:00
|
|
|
tmux-sleep
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux capture-pane -p
|
2021-03-21 16:25:29 +08:00
|
|
|
# CHECK: prompt 1> cat cmake/
|
|
|
|
|
2021-03-21 04:34:08 +08:00
|
|
|
# Correct case in pager when prefixes differ in case (#7743).
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux send-keys C-u C-l 'complete -c foo2 -a "aabc aaBd" -f' Enter C-l \
|
2021-03-21 16:25:29 +08:00
|
|
|
'foo2 A' Tab
|
2021-09-24 23:07:17 +08:00
|
|
|
tmux-sleep
|
2021-08-29 15:44:22 +08:00
|
|
|
isolated-tmux capture-pane -p
|
|
|
|
# The "bc" part is the autosuggestion - we could use "capture-pane -e" to check colors.
|
2021-03-21 16:25:29 +08:00
|
|
|
# CHECK: prompt 2> foo2 aabc
|
|
|
|
# CHECK: aabc aaBd
|