-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for vi mode #3
Add support for vi mode #3
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
end Could 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
).