-
https://github.com/jethrokuan/fzf#alternatives lacks Tmux support https://github.com/PatrickF1/fzf.fish/wiki/Prior-Art chose not to implement Tmux support, because users can easily add support externally themselves How do you get Ctrl-F etc. working inside TMUX? 😺 https://github.com/PatrickF1/fzf.fish/wiki/Troubleshooting (or https://github.com/PatrickF1/fzf.fish/wiki/FAQ) could document it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It actually appears to work just fine out of the box under TMUX. I'm now just curious what was meant by add support externally themselves. |
Beta Was this translation helpful? Give feedback.
-
Hi @vorburger! Welcome!
So my understanding is that Tmux users often want to open fzf in a new pane (why? not sure). And to do that, they need to call a wrapper. It's documented here: https://github.com/junegunn/fzf#fzf-tmux-script. Seems like a popular thing. Jethrokuan/fzf implements it: https://github.com/jethrokuan/fzf/blob/8ee7cf502637a9dd7d0cd96ead67c631a25e49d9/functions/__fzfcmd.fish TBH I'm not even a Tmux user and I've only used it briefly (and decided it wasn't for me). However, I suspect that we can accomplish the same thing without changing the source code. All you need to do is put in your config.fish something like this function fzf --wraps=fzf --description="Use fzf-tmux if in tmux session"
if set --query TMUX
fzf-tmux $argv
else
command fzf $argv
end See https://unix.stackexchange.com/questions/10689/how-can-i-tell-if-im-in-a-tmux-session-from-a-bash-script |
Beta Was this translation helpful? Give feedback.
Hi @vorburger! Welcome!
So my understanding is that Tmux users often want to open fzf in a new pane (why? not sure). And to do that, they need to call a wrapper. It's documented here: https://github.com/junegunn/fzf#fzf-tmux-script. Seems like a popular thing. Jethrokuan/fzf implements it: https://github.com/jethrokuan/fzf/blob/8ee7cf502637a9dd7d0cd96ead67c631a25e49d9/functions/__fzfcmd.fish
This user forked my repo and changed it: insidexino@473bf33
TBH I'm not even a Tmux user and I've only used it briefly (and decided it wasn't for me). However, I suspect that we can accomplish the same thing without changing the source code. All y…