Skip to content

Commit

Permalink
Fixed fish_hybrid_key_bindings support
Browse files Browse the repository at this point in the history
  • Loading branch information
laughedelic committed Aug 9, 2017
1 parent 40841c3 commit 3364ff5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions key_bindings.fish
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
function key_bindings

set -l _pisces_bind_mode default
if [ "$fish_key_bindings" = 'fish_vi_key_bindings' ]
set _pisces_bind_mode insert
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end

set -q pisces_pairs
Expand Down
7 changes: 4 additions & 3 deletions uninstall.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# FIXME: won't work as expected if user has changed the mode after installation
# NOTE: won't work as expected if user has changed the mode after installation
set -l _pisces_bind_mode default
if [ "$fish_key_bindings" = 'fish_vi_key_bindings' ]
set _pisces_bind_mode insert
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end

for pair in $pisces_pairs
Expand Down

0 comments on commit 3364ff5

Please sign in to comment.