Skip to content

Commit d9d21d9

Browse files
committed
Fixed uninstall: it should take into account bind mode
1 parent a8c434d commit d9d21d9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

uninstall.fish

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
# FIXME: won't work as expected if user has changed the mode after installation
2+
set -l _pisces_bind_mode default
3+
if [ "$fish_key_bindings" = 'fish_vi_key_bindings' ]
4+
set _pisces_bind_mode insert
5+
end
6+
17
for pair in $pisces_pairs
28
for c in (string split -- ',' $pair)
3-
bind -e $c
9+
bind -e -M $_pisces_bind_mode $c
410
end
511
end
612

7-
bind \b backward-delete-char
8-
bind \177 backward-delete-char
9-
bind \t complete
13+
bind -M $_pisces_bind_mode \b backward-delete-char
14+
bind -M $_pisces_bind_mode \177 backward-delete-char
15+
bind -M $_pisces_bind_mode \t complete
1016

1117
set -e pisces_pairs
12-
13-
# TODO:
14-
# eval $__fish_active_key_bindings
15-
# fish_user_key_bindings

0 commit comments

Comments
 (0)