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

Question about image size in Windows Terminal over ssh #2340

Open
2 of 3 tasks
yzhang-gh opened this issue Feb 14, 2025 · 2 comments
Open
2 of 3 tasks

Question about image size in Windows Terminal over ssh #2340

yzhang-gh opened this issue Feb 14, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@yzhang-gh
Copy link

yzhang-gh commented Feb 14, 2025

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

Windows Terminal

yazi --debug output

Yazi
    Version: 25.2.7 (17ff1e88 2025-02-07)
    Debug  : false
    Triple : x86_64-unknown-linux-gnu (linux-x86_64)
    Rustc  : 1.84.1 (e71f9a9a 2025-01-27)

Ya
    Version: 25.2.7 (17ff1e88 2025-02-07)

Emulator
    TERM                : Some("xterm-256color")
    TERM_PROGRAM        : None
    TERM_PROGRAM_VERSION: None
    Brand.from_env      : None
    Emulator.detect     : Emulator { kind: Right(Unknown { kgp: false, sixel: true }), light: false, cell_size: Some((10, 20)) }
    Emulator.detect_full: Ok(Emulator { kind: Right(Unknown { kgp: false, sixel: true }), light: false, cell_size: Some((10, 20)) })

Adapter
    Adapter.matches: Sixel

Desktop
    XDG_SESSION_TYPE           : Some("tty")
    WAYLAND_DISPLAY            : None
    DISPLAY                    : None
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: true

WSL
    WSL: false

Neovim
    NVIM          : false
    Neovim version: No such file or directory (os error 2)

Variables
    SHELL           : Some("/usr/bin/zsh")
    EDITOR          : None
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: None

Text Opener
    default     : Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-create: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block-rename: Some(Opener { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : tmux 3.2a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : No such file or directory (os error 2)

Dependencies
    file          : 5.41
    ueberzugpp    : No such file or directory (os error 2)
    ffmpeg/ffprobe: 4.3 / 4.3
    pdftoppm      : 22.02.0
    magick        : No such file or directory (os error 2)
    fzf           : 0.44.1
    fd/fdfind     : No such file or directory (os error 2) / No such file or directory (os error 2)
    rg            : No such file or directory (os error 2)
    chafa         : No such file or directory (os error 2)
    zoxide        : No such file or directory (os error 2)
    7zz/7z        : No such file or directory (os error 2) / 16.02
    jq            : No such file or directory (os error 2)

Clipboard
    wl-copy/paste: No such file or directory (os error 2) / No such file or directory (os error 2)
    xclip        : No such file or directory (os error 2)
    xsel         : No such file or directory (os error 2)

Describe the bug

Hi, yazi is absolutely amazing when working with remote machines. Recently Windows Terminal supported Sixel images (have been waiting for so long), which is my most-needed feature from yazi.

I found a weird issue that in Windows Terminal, the image size is always small, while in VS Code it works as expected.

Image

My yazi.toml (and I have executed yazi --clear-cache multiple times)

[preview]
max_width = 2160
max_height = 1440

I thought there might be some settings in Windows Terminal which limit the image sizes but couldn't find one. And there are also some screenshots show that it does support bigger images (like this).

So I have to turn to you and perhaps you have a clue about it.

Minimal reproducer

  • open Windows Terminal
  • ssh to a Ubuntu 22.04 machine
  • use yazi to browse images

Anything else?

No response

Checklist

  • I tried the latest nightly build, and the issue is still reproducible
  • I updated the debug information (yazi --debug) input box to the nightly that I tried
  • I can reproduce it after disabling all custom configs/plugins (mv ~/.config/yazi ~/.config/yazi-backup)
@yzhang-gh yzhang-gh added the bug Something isn't working label Feb 14, 2025
@sxyazi
Copy link
Owner

sxyazi commented Feb 14, 2025

What's your Windows Terminal version?

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Feb 14, 2025
@yzhang-gh
Copy link
Author

1.22.10352.0, the latest stable release

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants