<prefix> + Ctrl + F not launching tmux-fzf
matan-arkin opened this issue · comments
Hi,
I just followed the instructions to install tmux-fzf using TPM. To the best of my knowledge, all requirements are satisfied. I'm running Ubuntu 16. When I ran tmux run-shell -b 'command -v fzf', I got no ouput (but also no error). Not sure if that's the expected behavior.
When I press , then Ctrl+F (shift f), nothing happens.
How should I proceed?
Thanks!
Hmmm... It should work with prefix + shift F. Did you try to verify the prefix is right?
What about directly run the script?
$ tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
Cool!
What is the workaround?
It is not. Tmux-fzf's propose is to use fzf as a tmux manager (To switch sessions, create windows etc. Look at README.md)
BTW: If you just want to use fzf within TMUX, just run fzf in the terminal like you would without TMUX.
Hi,
not working with zsh
or in tmux@3.1c
? last release of tmux in brew is 3.1c
🤔
prefix + F isnt working for me as well . Any idea on this ?
As I said above, you can try to directly run this script and see if there is any output.
$ tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
As I said above, you can try to directly run this script and see if there is any output.
$ tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
Hi @sainnhe , No output for me .
[master:configfiles] tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
[master:configfiles]
[master:configfiles] file ~/.tmux/plugins/tmux-fzf/main.sh
/Users/nebadlan/.tmux/plugins/tmux-fzf/main.sh: Bourne-Again shell script text executable, ASCII text
@neerajbadlani What about this command?
$ ls | ~/.tmux/plugins/tmux-fzf/scripts/.fzf-tmux
@sainnhe Above is working
@neerajbadlani Could you share your configuration? Including .tmux.conf, .bashrc or related shrc.
Or maybe minimal configuration that can reproduce this bug, or maybe your dotfiles repo.
@sainnhe , my dotfiles repo , bashrc , tmux.conf is quite big and broken into multiple files . Is there some specific config that you are thinking of that could cause this issue , I can incrementally remove the configs to see which would make it work .
@neerajbadlani Maybe it's caused by $FZF_DEFAULT_OPTS, I'm not sure.
You can try to comment out unrelated config in your shrc and see if there is any possibility to provide a minimal shrc or .tmux.conf that can reproduce this bug.
Update : I realized my fzf-tmux wasnt working with -p and other options mentioned in .envs file . After investigation , looks like tmux updated options to popup . After pulling in new changes , fzf-tmux works . But still tmux-fzf isnt working .
After updating binary .fzf-tmux inside the project with the updated system-binary , it finally works .
I can still see preview though even though i added config inside tmux.conf
@neerajbadlani Since the version of fzf is very different in different distros, I can't directly use the system wide fzf-tmux
executable, so I have to copy the script from upstream.
I just updated it via e43f162.
Found a fix! If people don't have fzf installed, the plugin will not work. Try installing fzf
For me this happened after I updated tmux recently. I solved it by updating tmux-fzf
via tpm
(prefix
+ U (uppercase!))
Keybind doesn't work for me too. Workaround as bind F run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
I tried @wantyapps solution, it works on my mac now.
~/.tmux/plugins/tmux-fzf/scripts/.fzf-tmux
fzf executable not found
Then you need to install fzf with whatever tools you like,
brew install fzf
bingo
For me this happened after I updated tmux recently. I solved it by updating
tmux-fzf
viatpm
(prefix
+ U (uppercase!))
save my a**
Running the script directly through tmux
:
tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
No output.
Running the script like so:
ls | ~/.tmux/plugins/tmux-fzf/scripts/.fzf-tmux
Output was correct.
To fix the issue I executed tmux kill-server && tmux || tmux
to basically restart the tmux server, now it all works fine.