sxyazi / yazi

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

Latest change to sync breaks smart-enter #1892

Closed bertradio closed 16 hours ago

bertradio commented 17 hours ago

What system are you running Yazi on?

Linux X11

What terminal are you running Yazi in?

kitty 0.36.4

yazi --debug output

Yazi
    Version: 0.3.3 (baf062f 2024-11-07)
    Debug  : false
    OS     : linux-x86_64 (unix)

Ya
    Version: 0.3.3 (baf062f 2024-11-07)

Emulator
    Emulator.via_env: ("xterm-kitty", "")
    Emulator.via_csi: Ok(Kitty)
    Emulator.detect : Kitty

Adapter
    Adapter.matches: Kgp

Desktop
    XDG_SESSION_TYPE           : Some("wayland")
    WAYLAND_DISPLAY            : Some("wayland-0")
    DISPLAY                    : Some(":0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

Variables
    SHELL              : Some("/bin/bash")
    EDITOR             : None
    VISUAL             : None
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None

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

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

Dependencies
    file             : 5.44
    ueberzugpp       : 2.9.6
    ffmpegthumbnailer: No such file or directory (os error 2)
    magick           : No such file or directory (os error 2)
    fzf              : 0.55.0
    fd               : No such file or directory (os error 2)
    fdfind           : 8.6.0
    rg               : 13.0.0
    chafa            : 1.12.4
    zoxide           : 0.9.4
    7z               : 16.02
    7zz              : No such file or directory (os error 2)
    jq               : 1.6

Describe the bug

As per instructions, added to smart-enter init.lua --- @sync entry.

I have smart-enter mapped to Enter. When hitting enter the process just hangs. This happens whether or not I have --sync in my keymap.toml.

Minimal reproducer

I was able to change other plugins with --- @sync entry successfully.

Anything else?

No response

Validations

bertradio commented 17 hours ago

yazi.log

My yazi.log file.

Also here is my smart-enter init.lua:

-- init.lua

-- Created: 05/20/24

--- @sync entry

return { entry = function() local h = cx.active.current.hovered ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = true }) end, }

sxyazi commented 16 hours ago

-- Created: 05/20/24

No, you need to place the --- @sync entry at the head of the file without any other content before, see https://yazi-rs.github.io/docs/tips#smart-enter

Closing as expected behavior

bertradio commented 15 hours ago

Sorry to bother. Great work

bertradio commented 13 hours ago

Thanks. Works now.

Yazi is the BEST!!!

On Thu, Nov 7, 2024, at 15:07, 三咲雅 · Misaki Masa wrote:

-- Created: 05/20/24

No, you need to place the --- @sync entry at the head of the file without any other content before, see https://yazi-rs.github.io/docs/tips#smart-enter

Closing as expected behavior

— Reply to this email directly, view it on GitHub https://github.com/sxyazi/yazi/issues/1892#issuecomment-2463400306, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLYYRJYZ3XA3MOCSZB3ZULZ7PXBZAVCNFSM6AAAAABRMHNJB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRTGQYDAMZQGY. You are receiving this because you authored the thread.Message ID: @.***>