sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!
MIT License
926 stars 51 forks source link

<prefix> + Ctrl + F not launching tmux-fzf #34

Open matan-arkin opened 3 years ago

matan-arkin commented 3 years ago

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!

wantyapps commented 3 years ago

Hmmm... It should work with prefix + shift F. Did you try to verify the prefix is right?

sainnhe commented 3 years ago

What about directly run the script?

$ tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh
matan-arkin commented 3 years ago

I did. The prefix works for other things. For the moment, looks like I found a different work around. Thanks anyway!

On Sun, Feb 21, 2021 at 1:58 PM wantyapps notifications@github.com wrote:

Hmmm... It should work with + F. Did you try to verify the prefix is right?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sainnhe/tmux-fzf/issues/34#issuecomment-782846019, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSVZT6GMR5XIIYBXXYSB5LTADYNTANCNFSM4X6ZPVPQ .

wantyapps commented 3 years ago

Cool!

wantyapps commented 3 years ago

What is the workaround?

matan-arkin commented 3 years ago

Not using tmux-fzf. I might've misunderstood the purpose of tmux-fzf, but I thought it was necessary for using tmux and fzf simultaneously. Looks like that's not the case and I'm able to activate fzf from a tmux session without tmux-fzf.

On Sun, Feb 21, 2021 at 2:32 PM wantyapps notifications@github.com wrote:

What is the workaround?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sainnhe/tmux-fzf/issues/34#issuecomment-782850550, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSVZT3RWO5BQTWLYE7WFQ3TAD4O3ANCNFSM4X6ZPVPQ .

wantyapps commented 3 years ago

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)

wantyapps commented 3 years ago

BTW: If you just want to use fzf within TMUX, just run fzf in the terminal like you would without TMUX.

matan-arkin commented 3 years ago

Thanks!! And sorry for confusion.

On Sun, Feb 21, 2021 at 2:43 PM wantyapps notifications@github.com wrote:

BTW: If you just want to use fzf within TMUX, just run fzf in the terminal like you would without TMUX.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sainnhe/tmux-fzf/issues/34#issuecomment-782852014, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSVZTYBBO4JWSXWHMW5WZ3TAD5YPANCNFSM4X6ZPVPQ .

jlobos commented 3 years ago

Hi,

not working with zsh or in tmux@3.1c? last release of tmux in brew is 3.1c 🤔

neerajbadlani commented 3 years ago

prefix + F isnt working for me as well . Any idea on this ?

sainnhe commented 3 years ago

@jlobos @neerajbadlani

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
jlobos commented 3 years ago

Now it work for me 👍

Grabación de pantalla 2021-03-07 a la(s) 20 58 10

neerajbadlani commented 3 years ago

@jlobos @neerajbadlani

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

sainnhe commented 3 years ago

@neerajbadlani What about this command?

$ ls | ~/.tmux/plugins/tmux-fzf/scripts/.fzf-tmux
neerajbadlani commented 3 years ago

@sainnhe Above is working

neerajbadlani commented 3 years ago

image

sainnhe commented 3 years ago

@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.

neerajbadlani commented 3 years ago

@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 .

sainnhe commented 3 years ago

@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.

neerajbadlani commented 3 years ago

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 .

neerajbadlani commented 3 years ago

After updating binary .fzf-tmux inside the project with the updated system-binary , it finally works .

neerajbadlani commented 3 years ago

I can still see preview though even though i added config inside tmux.conf

sainnhe commented 3 years ago

@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.

wantyapps commented 3 years ago

Found a fix! If people don't have fzf installed, the plugin will not work. Try installing fzf

Gerrit-K commented 3 years ago

For me this happened after I updated tmux recently. I solved it by updating tmux-fzf via tpm (prefix + U (uppercase!))

mistical2008 commented 3 years ago

Keybind doesn't work for me too. Workaround as bind F run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh

infinityhacks commented 2 years ago

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

cuilei5205189 commented 2 years ago

For me this happened after I updated tmux recently. I solved it by updating tmux-fzf via tpm (prefix + U (uppercase!))

save my a**

mysy00 commented 1 month ago

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.