sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tmux: unknown option -- K

ghostbuster91 opened this issue · comments

Hi, I tried to set this up on my ubuntu with home-manager from nix.

I have fzf installed and tmux is able to see it:

tmux run-shell 'command -v fzf' 
/home/kghost/.nix-profile/bin/fzf

But when I try to invoke fzf-tmux I get this:

ls | /nix/store/rk6vrgamfsnp45kvk2cwhjmjs387691i-tmuxplugin-tmux-fzf-unstable-2020-12-07/share/tmux-plugins/tmux-fzf/scripts/.fzf-tmux
tmux: unknown option -- K
usage: display-popup [-CE] [-c target-client] [-d start-directory] [-h height] [-t target-pane] [-w width] [-x position] [-y position] [command]

my tmux version is: tmux 3.2a

I discovered this because when I press prefix + F nothing happens and hence I started debugging.

Calling

tmux run-shell -b /nix/store/32d5ndb6nasv7ikmlnr3yxg5inh1n0i3-tmuxplugin-tmux-fzf-unstable-2020-12-07/share/tmux-plugins/tmux-fzf/main.sh

does nothing.

/scripts/.fzf-tmux is directly copied from fzf, I may not be able to help.

You can open an issue in fzf repository instead.

Ok, thanks, I will do that.

Do you think that this is the root cause of my issue?

You can clone the fzf repo and try if /bin/fzf-tmux works on your machine.

Nixpkgs has very old tmux-fzf plugin, the latest rev already fixed tmux dropping support -K in popup.