|
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 |
8 | 6 |
|
9 | | - set -q pisces_pairs |
10 | | - or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','" |
| 7 | +set -q pisces_pairs |
| 8 | +or set -U pisces_pairs '(,)' '[,]' '{,}' '","' "','" |
11 | 9 |
|
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 |
15 | 13 |
|
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 |
20 | 18 |
|
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