Skip to content

Commit 1b299fe

Browse files
committed
Removed unnecessary key_bindings function wrapping
1 parent 3364ff5 commit 1b299fe

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

key_bindings.fish

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
function key_bindings
2-
3-
set -l _pisces_bind_mode default
4-
switch $fish_key_bindings
5-
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
6-
set _pisces_bind_mode insert
7-
end
1+
set -l _pisces_bind_mode default
2+
switch $fish_key_bindings
3+
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
4+
set _pisces_bind_mode insert
5+
end
86

9-
set -q pisces_pairs
10-
or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','"
7+
set -q pisces_pairs
8+
or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','"
119

12-
for pair in $pisces_pairs
13-
_pisces_bind_pair $_pisces_bind_mode (string split -- ',' $pair)
14-
end
10+
for pair in $pisces_pairs
11+
_pisces_bind_pair $_pisces_bind_mode (string split -- ',' $pair)
12+
end
1513

16-
# normal backspace, also known as \010 or ^H:
17-
bind -M $_pisces_bind_mode \b _pisces_backspace
18-
# Terminal.app sends DEL code on ⌫:
19-
bind -M $_pisces_bind_mode \177 _pisces_backspace
14+
# normal backspace, also known as \010 or ^H:
15+
bind -M $_pisces_bind_mode \b _pisces_backspace
16+
# Terminal.app sends DEL code on ⌫:
17+
bind -M $_pisces_bind_mode \177 _pisces_backspace
2018

21-
# overrides TAB to provide completion of vars before a closing '"'
22-
bind -M $_pisces_bind_mode \t _pisces_complete
23-
end
19+
# overrides TAB to provide completion of vars before a closing '"'
20+
bind -M $_pisces_bind_mode \t _pisces_complete

0 commit comments

Comments
 (0)