Skip to content
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

Key binding messed up with fzf not compatibale in nixos #265

Open
3 tasks done
LeducH opened this issue Feb 11, 2024 · 2 comments
Open
3 tasks done

Key binding messed up with fzf not compatibale in nixos #265

LeducH opened this issue Feb 11, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@LeducH
Copy link

LeducH commented Feb 11, 2024

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

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • 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
                '';
@herrwusel
Copy link

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

@herrwusel
Copy link

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

@jeffreytse jeffreytse self-assigned this Mar 5, 2024
@jeffreytse jeffreytse added the good first issue Good for newcomers label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants