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

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

Closed
cavivie opened this issue Jun 12, 2024 · 4 comments
Labels
invalid This doesn't seem right

Comments

@cavivie
Copy link

cavivie commented Jun 12, 2024

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.

@cavivie cavivie added the bug Something isn't working label Jun 12, 2024
@cavivie cavivie changed the title Strange behavior when mouse scrolling Strange behavior when scrolling mouse to view file preview content Jun 12, 2024
@cavivie cavivie changed the title Strange behavior when scrolling mouse to view file preview content Strange behavior when scrolling mouse to view file preview content in rio terminal Jun 12, 2024
@sxyazi
Copy link
Owner

sxyazi commented Jun 12, 2024

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)

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label Jun 12, 2024
@cavivie
Copy link
Author

cavivie commented Jun 12, 2024

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

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label Jun 12, 2024
@cavivie
Copy link
Author

cavivie commented Jun 12, 2024

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

@cavivie cavivie closed this as completed Jun 12, 2024
@sxyazi sxyazi added invalid This doesn't seem right and removed bug Something isn't working labels Jun 12, 2024
@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants