sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
14.31k stars 330 forks source link

Strange behavior when scrolling mouse to view file preview content in rio terminal #1150

Closed cavivie closed 2 months ago

cavivie commented 2 months ago

What system are you running Yazi on?

macOS

What terminal are you running Yazi in?

Yazi 0.2.5 (Homebrew 2024-04-23) / rioterm 0.1.0

Did you try the latest code to see if this problem got fixed?

Tried, but the problem still

yazi --debug output

```sh Yazi Version: 0.2.5 (Homebrew 2024-04-23) OS: macos-aarch64 (unix) Debug: false Emulator Emulator.via_env: ("rio", "rio") Emulator.via_csi: Ok(Unknown([])) Emulator.detect: Iterm2 Adaptor Adaptor.matches: Iterm2 Desktop XDG_SESSION_TYPE: None WAYLAND_DISPLAY: None DISPLAY: None SSH shared.in_ssh_connection: false WSL /proc/sys/fs/binfmt_misc/WSLInterop: false Variables SHELL: Some("/bin/zsh") EDITOR: Some("nvim") ZELLIJ_SESSION_NAME: None YAZI_FILE_ONE: None YAZI_CONFIG_HOME: None file(1) Version: Ok(Output { status: ExitStatus(unix_wait_status(0)), stdout: "file-5.41\nmagic file from /usr/share/file/magic\n", stderr: "" }) Text Opener default: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) block: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) tmux TMUX: false Ueberzug++ Version: Err(Os { code: 2, kind: NotFound, message: "No such file or directory" }) -------------------------------------------------- When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time. You can find it in the "/Users/cavivie/.local/state/yazi" directory. ```

Describe the bug

https://github.com/sxyazi/yazi/assets/103884097/12dbb149-326d-4edc-9fc0-45973387e88a

This was recorded in Rio Terminal.

Expected Behavior

https://github.com/sxyazi/yazi/assets/103884097/723bc833-7f71-428d-a043-64a21bb4401f

This was recorded in iTerm2 Terminal.

To Reproduce

In rio terminal, the mouse scroll cannot be fixed when viewing the file preview content. It always scrolls the parent directory list where the file is located, rather than the file content itself. However, the behavior in iTerm2 seems to be correct. I didn't find any issues related to this in rio issue.

Configuration

No response

Anything else?

I am so sorry to create this issue If it is a known yazi or rio issue.

sxyazi commented 2 months ago

Are you sure you're using the latest Yazi code? I noticed that your build date is 2024-04-23, but mouse support was merged a week ago (2024-06-02) in https://github.com/sxyazi/yazi/pull/1038.

iTerm2 might be working fine because it has a fallback for when programs don't support the mouse, like WezTerm does https://github.com/sxyazi/yazi/issues/954#issuecomment-2079126496

cavivie commented 2 months ago

I currently install via brew install yazi --HEAD, I think I need to build the latest yazi from source?

cavivie commented 2 months ago

Thanks. I verified the latest source code and found that the two behave the same. I will close this issue.

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.