xfzv

Results 171 comments of xfzv

> yes, i actually saw the announcement, however even after building from source, the example code didn't seem to work for me in the kitty terminal I couldn't get it...

@DivineMK thanks for the heads-up. I'm using Kitty and the following works fine in the terminal: ```bash fzf --preview 'fzf-preview.sh {}' ``` ![image](https://github.com/Aloxaf/fzf-tab/assets/78810647/0a63e776-1ca8-469a-9b45-145eccad24af) but it doesn't work well in the...

> Did you make sure fzf-preview.sh is available globally (putting in $PATH) Yes, it's in `$PATH`. Using absolute path instead of `fzf-preview.sh` doesn't make any difference. > Also update fzf...

Also occurs with stripped down `lessfilter.sh`: ```bash #!/usr/bin/env bash mime="$(file -bL --mime-type "$1")" category="${mime%%/*}" if [[ "$category" == "image" ]]; then fzf-preview.sh "$1" fi ```

> Edit: I realized you have it working with other functionalities like preview directories so this is not the problem I guess but maybe give it a shot 🤕 ?...

> If running fzf-preview.sh in terminal works then I don't know how to help No worries, thanks for the suggestions! I don't know either. Image previews with [lf](https://github.com/gokcehan/lf) and Kitty...

@Chrispycode Thanks for the gist. Can confirm it works for me as well after replacing this line from [fzf-preview.sh](https://github.com/junegunn/fzf/blob/daa602422dc272cbec6b99bc7520262672ad7230/bin/fzf-preview.sh#L56): ```diff - kitty icat --clear --transfer-mode=memory --unicode-placeholder --stdin=no --place="$dim@0x0" "$file" |...

Same here, not sure why. Also wondering why ```sh export FZF_CTRL_T_OPTS="--preview 'fzf-preview.sh {}'" ``` works just fine without any tweak. Thank you for your time!

> I got it to work now without the message, seems to be a problem with the LESSOPEN example. > > ``` > zstyle ':fzf-tab:complete:*:*' fzf-preview '$DOTS/fzf-preview.sh ${(Q)realpath}' > ```...

> Maybe switching to > zstyle ':fzf-tab:complete:*:*' fzf-preview '/path/to/fzf-preview.sh ${(Q)realpath}' > and customizing fzf-preview.sh to re-use some elements of lessfilter.sh is a good approach? Can confirm this approach works fine...