Add support for vi mode#3
Add support for vi mode#3laughedelic merged 1 commit intolaughedelic:masterfrom terlar:bugfix/work-with-vi-mode
Conversation
|
The alternative would be to not rely on the user configuring this and instead look at |
|
👍 As far as I understand # in key_bindings and pass it to _pisces_bind_pair as an argument
set -l _pisces_bind_mode default
if [ "$fish_key_bindings" = "fish_vi_key_bindings" ]
set _pisces_bind_mode insert
endCould you do it this way? |
|
@laughedelic I updated using this instead. Only thing I am not sure about is the position of the mode argument, I would prefer having it first, but that would break existing installations if they have copied the key_bindings. This new way fallbacks to default inside the What do you think? |
|
Looks good! I would also make So I would merge it as it is now, but it requires updating this branch to the current master first (with the changes from #4). |
VI mode will be useless with the current bindings since they are bound to normal mode, this adds the possibility to set which mode should be used to enable the pisces bindings in vi mode. (`-M insert`).
|
Rebased towards new master, also switched around mode to be in the beginning. |
|
Well done 👍 |
|
@terlar one thing I forgot about is the uninstall script. It erases bindings and it should also take mode parameter. I'm fixing it. |
VI mode will be useless with the current bindings since they are bound
to normal mode, this adds the possibility to set which mode should be
used to enable the pisces bindings in vi mode. (
-M insert).