kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.15k stars 972 forks source link

icat not working on remote-client with fzf #7924

Closed Chrispycode closed 1 week ago

Chrispycode commented 1 week ago

Describe the bug While trying to preview files with fzf and icat on a remote machine the remote-client only outputs the pixel data

To Reproduce Steps to reproduce the behavior:

  1. install fzf
  2. cd into a folder with png's
  3. use this command to preview the png's fzf -q .png --preview="kitty icat --clear --transfer-mode=stream --unicode-placeholder --stdin=no --place=50x50@0x0 {}"

Screenshots output on the local machine Screencast from 2024-09-29 10-53-52.webm

thats the output on the server with ssh Screencast from 2024-09-29 10-59-55.webm

Environment details

kitty 0.36.1 created by Kovid Goyal
Linux chrispycode-linux 6.10.6-10-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Aug 24 16:17:40 UTC 2024 x86_64
Manjaro Linux 6.10.6-10-MANJARO  (chrispycode-linux) (/dev/tty)

DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="24.0.8"
DISTRIB_CODENAME="Wynsdey"
DISTRIB_DESCRIPTION="Manjaro Linux"
Running under: Wayland (GNOME Shell 46.4) missing: layer_shell
OpenGL: '4.6 (Core Profile) Mesa 24.1.6-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
  medium: NotoSansMono-Regular: /usr/share/fonts/noto/NotoSansMono-Regular.ttf:0
  bold: NotoSansMono-Bold: /usr/share/fonts/noto/NotoSansMono-Bold.ttf:0
  italic: NotoSansMono-Regular: /usr/share/fonts/noto/NotoSansMono-Regular.ttf:0
  bi: NotoSansMono-Bold: /usr/share/fonts/noto/NotoSansMono-Bold.ttf:0
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/zsh
Loaded config files:
  /home/chrispycode/.config/kitty/kitty.conf

Config options different from defaults:
active_tab_font_style         (False, False)
background_opacity            0.9
copy_on_select                clipboard
editor                        nvim
enabled_layouts               ['horizontal', 'vertical', 'stack', 'grid']
hide_window_decorations       1
remember_window_size          False
scrollback_lines              10000
scrollback_pager_history_size 1048576000
show_hyperlink_targets        True
strip_trailing_spaces         smart
tab_bar_style                 powerline
touch_scroll_multiplier       10.0
Added shortcuts:
    alt+down →  next_window
    alt+up →  previous_window
Colors:
    active_border_color           #8b0000   
    active_tab_background         #583636   
    active_tab_foreground         #eeeeee   
    background                    #0a0a0a   
    color0                        #20111a   
    color1                        #c10022   
    color10                       #960000   
    color11                       #583636   
    color12                       #5f4a4a   
    color13                       #914a4a   
    color14                       #d48e85   
    color2                        #960000   
    color3                        #583636   
    color4                        #5f4a4a   
    color5                        #914a4a   
    color6                        #d48e85   
    color7                        #ffffff   
    color8                        #5e5252   
    color9                        #c10022   
    foreground                    #919191   
    inactive_tab_background       #914a4a   
    inactive_tab_foreground       #919191   
    wayland_titlebar_color        background

Important environment variables seen by the kitty process:
    PATH                                /home/chrispycode/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/home/chrispycode/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG                                en_CA.UTF-8
    EDITOR                              /usr/bin/nano
    SHELL                               /bin/zsh
    DISPLAY                             :0
    WAYLAND_DISPLAY                     wayland-0
    USER                                chrispycode
    LC_ADDRESS                          de_DE.UTF-8
    LC_IDENTIFICATION                   de_DE.UTF-8
    LC_MEASUREMENT                      de_DE.UTF-8
    LC_MONETARY                         de_DE.UTF-8
    LC_NAME                             de_DE.UTF-8
    LC_NUMERIC                          de_DE.UTF-8
    LC_PAPER                            de_DE.UTF-8
    LC_TELEPHONE                        de_DE.UTF-8
    LC_TIME                             de_DE.UTF-8
    XDG_DATA_DIRS                       /home/chrispycode/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
    XDG_RUNTIME_DIR                     /run/user/1000
    XDG_CURRENT_DESKTOP                 GNOME
    XDG_MENU_PREFIX                     gnome-
    XDG_SESSION_CLASS                   user
    XDG_SESSION_DESKTOP                 gnome
    XDG_SESSION_TYPE                    wayland

Additional context I also tested on a new arch install with the latest kitty version and on the server I updated the ssh-kitten

kovidgoyal commented 1 week ago

I'm afraid I dont have the time/interest to debug fzf. If you can reproduce the issue without fzf I will take a look.

Chrispycode commented 1 week ago

Understandable and sorry, I tested a little more and it seems like to be a issue with the ancient fzf version in debian 12. I tested it with ssh on a arch system and it works flawlessly.