fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerFix repeated tab causing repeated smartcase completion insertion1f18b9715

master
998 B42 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v tmux
3#REQUIRES: uname -r | grep -qv Microsoft
4
5isolated-tmux-start -C '
6    set -g fish_autosuggestion_enabled 0
7    complete : -s c -l clip
8    complete : -s q -l qrcode
9    complete true -l profile
10    complete true -l ProfileManager
11'
12touch somefile1
13touch somefile2
14
15isolated-tmux send-keys C-l ': -c'
16
17function tab
18    isolated-tmux send-keys Tab
19    tmux-sleep
20    isolated-tmux capture-pane -p | awk '/./ { print "[" $0 "]" }'
21end
22
23tab
24# CHECK: [prompt 0> : -cq]
25tab
26# CHECK: [prompt 0> : -cq somefile]
27# CHECK: [somefile1  somefile2]
28tab
29# CHECK: [prompt 0> : -cq somefile1]
30# CHECK: [somefile1  somefile2]
31
32isolated-tmux send-keys C-u C-l 'true --pro'
33tab
34# CHECK: [prompt 0> true --profile]
35# CHECK: [--profile  --ProfileManager]
36tab
37# CHECK: [prompt 0> true --profile]
38# CHECK: [--profile  --ProfileManager]
39isolated-tmux send-keys foo
40tmux-sleep
41isolated-tmux capture-pane -p | awk '/./ { print "[" $0 "]" }'
42# CHECK: [prompt 0> true --profile foo]