-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Feature Request] Improved support for FZF and tmux #218
Comments
As for https://github.com/junegunn/fzf/blob/855f90727af7827d9934b7fa00ea5ed51f5e4e81/src/terminal.go#L77 being the culprit, particularly the portion See the RegEx used in the function here. It seems the sequence |
@AnonymouX47 Great catch. Could be worth filing an issue with fzf, I guess? @stevewalton What happens if you leave passthrough off and pass |
Dynamic updates would need to be handled by
Yes, if fzf is redrawing the view correctly, but not recalculating the image size for the previewer, that sounds like an fzf bug.
This is likely related to how fzf creates the new terminal window. Unfortunately, Chafa doesn't have any reporting that could help, but you could try various things, like substituting
Awesome! |
I have issue #217 opened where I'm discussing issues with support over
ssh
andtmux
, but a main part of my goal is to getchafa
working infzf
undertmux
so that I can easily search and preview images on remote servers. There is also a related issue in thewezterm
project trying imgcat, which I believe shares some similar issues.There are some issues with
fzf
especially around the window size but there is added complexity once we usetmux
.I am using this function for the samples and will note if I change
The
chafa
line is all that matters and you will only needfzf
andchafa
to reproduce the error.bat
is included for transparency. (This can most certainly be cleaned up)Here is an example of things working over
ssh
correctly.Now when we use
tmux
(I have no idea whyIMG_9635.jpg
is the default here whileIMG_9630.jpg
is what's found by the other 2. This is afzf
issue. Noted since it is easy to miss).Modifying command for
--passthrough tmux
An interesting note is in our function we have the part
$(( ${FZF_PREVIEW_<HW>} - 50 ))
instead of directly calling${FZF_PREVIEW_COLUMNS}
directly. I found that when calling directly we tend to get an output like thisThere's clearly some differentiation in how
fzf
counts vschafa
. I have not dug into this and our offset is a dirty patch to try to focus on one problem at a time.If we instead use a larger offset such as
100
thenchafa
reports an error:(the message is cut off)
I'm fairly that the values are negative here.
The text was updated successfully, but these errors were encountered: