zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Conflict with Zzh-autopair

Open Tainted-Fool opened this issue 2 years ago • 0 comments

General information

Basic examination

  • [x] I have read through the README page
  • [x] I have the latest version of zsh-vi-mode
  • [x] I have tested with another terminal program

Problem description

All my plugins were working properly until I introduced this plugin into the mix. Basically, this plugin conflicts with (zsh-autopair)[https://github.com/hlissner/zsh-autopair] . When I remove this plugin zsh-vi-mode, zsh-autopair works. The autopair plugin does not get initialized if I enable this plugin.

For example as soon as I press quotation mark " I should get another " right next to the cursor i.e. autopair. However, when I enable this, the pair does not show up unless I run source ~/.zshrc or initialize the autopair with autopair-init

Reproduction steps

  1. Add this to ~/.zshrc file:
source ~/.zsh-autopair/autopair.zsh
source ~/.zsh-vi-mode/zsh-vi-mode.plugin.zsh
autopair-init
  1. Close terminal and re-open
  2. Try to trigger autopair by typing ', ", (, etc.
  3. Notice no pair - need to manually source or initialize autopair to fix

Expected behavior

Autopair to trigger as soon as you open a terminal. I don't mind initializing autopair but it should do it on its own based on the ~/.zshrc settings. Apart from that, I am loving the plugin so far! Keep up the good work 😄

Tainted-Fool avatar Jul 14 '22 06:07 Tainted-Fool