Strange behavior when scrolling mouse to view file preview content in rio terminal
cavivie opened this issue · comments
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
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
Screen.Recording.2024-06-12.at.16.19.33.mov
This was recorded in Rio Terminal.
Expected Behavior
Screen.Recording.2024-06-12.at.16.22.21.mov
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.
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 #1038.
iTerm2 might be working fine because it has a fallback for when programs don't support the mouse, like WezTerm does #954 (comment)
I currently install via brew install yazi --HEAD
, I think I need to build the latest yazi from source?
Thanks. I verified the latest source code and found that the two behave the same. I will close this issue.
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.