sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!
MIT License
990 stars 52 forks source link

tmux: unknown option -- K #49

Open ghostbuster91 opened 2 years ago

ghostbuster91 commented 2 years ago

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.

sainnhe commented 2 years ago

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

You can open an issue in fzf repository instead.

ghostbuster91 commented 2 years ago

Ok, thanks, I will do that.

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

sainnhe commented 2 years ago

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

liaowang11 commented 2 years ago

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