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

Key binding messed up with fzf not compatibale in nixos

Open LeducH opened this issue 1 year ago • 2 comments

General information

fzf shortcut does not work when following the readme guide

OS: NixOS 23.11.20231221.0b3d618 (Tapir) x86_64
Kernel: 6.1.69
Shell: zsh 5.9
Terminal: alacritty
zsh.nix
-----
....
        programs.zsh = {
                initExtra = ''
                source ${pkgs.unstable.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
                zvm_after_init_commands+=("[ -f $(fzf)/.fzf.zsh ] && source $(fzf)/.fzf.zsh")
                '';
....

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

Unclear instruction use fzf and zsh-vi-mode with nixos home manger. hints on fzf not working with nixos setup.

Reproduction steps

  1. install nixos with home-manager and flakes
  2. use homemanger with settings from above, build generarion
  3. open terminal press C-r

Expected behavior

fzf opens

current output

current output

❯
bck-i-search: _

workaround

use zsh-vim-mode and source the fzf in accordance to nixos doku after the plugin

            initExtra = ''
                source ${zshExtensionsDir}/zsh-vim-mode.plugin.zsh
                if [ -n "${commands[fzf-share]}" ]; then
                  source "$(fzf-share)/key-bindings.zsh"
                  source "$(fzf-share)/completion.zsh"
                fi
                '';

LeducH avatar Feb 11 '24 16:02 LeducH

I can confirm. Moreover, c-f functionality is also gone.

mrwsl avatar Feb 13 '24 07:02 mrwsl

Btw: in normal mode, C-R is working for me.

mrwsl avatar Feb 28 '24 06:02 mrwsl