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

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

Open
matan-arkin opened this issue Feb 21, 2021 · 29 comments
Open

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

matan-arkin opened this issue Feb 21, 2021 · 29 comments

Comments

@matan-arkin
Copy link

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
Copy link

wantyapps commented Feb 21, 2021

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

@sainnhe
Copy link
Owner

sainnhe commented Feb 21, 2021

What about directly run the script?

$ tmux run-shell -b ~/.tmux/plugins/tmux-fzf/main.sh

@matan-arkin
Copy link
Author

matan-arkin commented Feb 21, 2021 via email

@wantyapps
Copy link

Cool!

@wantyapps
Copy link

What is the workaround?

@matan-arkin
Copy link
Author

matan-arkin commented Feb 21, 2021 via email

@wantyapps
Copy link

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
Copy link

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

@matan-arkin
Copy link
Author

matan-arkin commented Feb 21, 2021 via email

@jlobos
Copy link

jlobos commented Feb 26, 2021

Hi,

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

@neerajbadlani
Copy link

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

@sainnhe
Copy link
Owner

sainnhe commented Mar 7, 2021

@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
Copy link

jlobos commented Mar 7, 2021

Now it work for me 👍

  • zsh 5.8
  • tmux 3.1c

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

@neerajbadlani
Copy link

@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
Copy link
Owner

sainnhe commented Mar 8, 2021

@neerajbadlani What about this command?

$ ls | ~/.tmux/plugins/tmux-fzf/scripts/.fzf-tmux

@neerajbadlani
Copy link

@sainnhe Above is working

@neerajbadlani
Copy link

image

@sainnhe
Copy link
Owner

sainnhe commented Mar 8, 2021

@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
Copy link

@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
Copy link
Owner

sainnhe commented Mar 8, 2021

@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
Copy link

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
Copy link

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

@neerajbadlani
Copy link

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

@sainnhe
Copy link
Owner

sainnhe commented Mar 9, 2021

@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
Copy link

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

@Gerrit-K
Copy link

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

@mistical2008
Copy link

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

@infinityhacks
Copy link

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
Copy link

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

save my a**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants