laughedelic / pisces

♓️ Fish shell plugin that helps you to work with paired symbols in the command line

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working when fish_vi_key_bindings is set

ubmit opened this issue · comments

I've just installed the plugin using Fisher 4.1.0 and it simply doesn't work if fish_vi_key_bindings is set. It works perfectly when the default bindings are set, though. Is there any workaround?

@GuilhermedeAndrade Are you seeing any errors like "test: Missing argument at index 2"? If you are, then it could be that $fish_key_bindings is not set at the time this runs:

set -l _pisces_bind_mode default
switch $fish_key_bindings
case 'fish_vi_key_bindings' 'fish_hybrid_key_bindings'
set _pisces_bind_mode insert
end

I guess it is already set, because I have it in my config.fish file. Also:
image

Could you describe what didn't work exactly?

  1. What did you do?
  2. What actually happened?
  3. What did you expect to happen?

As I said, it simply doesn't work. Nothing. It doesn't throw any error either.

  1. Installed the plugin using Fisher 4.1.0 and typed (, [ and ", but nothing autocloses.
  2. Nothing happened.
  3. I expected it to autoclose.

@GuilhermedeAndrade What does echo $fish_key_bindings tell you?

@GuilhermedeAndrade What does echo $fish_key_bindings tell you?

#29 (comment)

fish_vi_key_bindings

Could you try autopair.fish instead? I don't know what the problem could be with this plugin.

Sure, will try it!

autopair.fish doesn't work with fish_vi_key_bindings either

@GuilhermedeAndrade Should be fixed now. 💯

@GuilhermedeAndrade Should be fixed now. 💯

It works perfectly, thank you 🙏