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

Unable to hover a .dotfile on startup #2056

Closed
2 of 3 tasks
mikavilpas opened this issue Dec 16, 2024 · 3 comments · Fixed by #2057
Closed
2 of 3 tasks

Unable to hover a .dotfile on startup #2056

mikavilpas opened this issue Dec 16, 2024 · 3 comments · Fixed by #2057
Labels
bug Something isn't working

Comments

@mikavilpas
Copy link
Contributor

mikavilpas commented Dec 16, 2024

What system are you running Yazi on?

macOS

What terminal are you running Yazi in?

wezterm

yazi --debug output

Yazi
    Version: 0.4.2 (f4eef99f 2024-12-16)
    Debug  : false
    Triple : aarch64-apple-darwin (macos-aarch64)
    Rustc  : 1.84.0-nightly (81eef2d3 2024-11-11)

Ya
    Version: 0.4.2 (f4eef99f 2024-12-16)

Emulator
    Brand.from_env      : Some(WezTerm)
    Emulator.detect     : Emulator { kind: Left(WezTerm), light: false, cell_size: Some((10, 21)) }
    Emulator.detect_full: Ok(Emulator { kind: Left(WezTerm), light: false, cell_size: Some((10, 21)) })

Adapter
    Adapter.matches: Iip

Desktop
    XDG_SESSION_TYPE           : None
    WAYLAND_DISPLAY            : None
    DISPLAY                    : Some("/private/tmp/com.apple.launchd.v9yvn5prx5/org.xquartz:0")
    SWAYSOCK                   : None
    HYPRLAND_INSTANCE_SIGNATURE: None
    WAYFIRE_SOCKET             : None

SSH
    shared.in_ssh_connection: false

WSL
    WSL: false

NVIM
    NVIM          : false
    Neovim version: 0.11.0

Variables
    SHELL           : Some("/bin/zsh")
    EDITOR          : Some("nvim")
    VISUAL          : None
    YAZI_FILE_ONE   : None
    YAZI_CONFIG_HOME: None
    YAZI_ZOXIDE_OPTS: None
    FZF_DEFAULT_OPTS: Some(" --color=bg+:#363a4f,bg:#24273a,spinner:#f4dbd6,hl:#ed8796 --color=fg:#cad3f5,header:#ed8796,info:#c6a0f6,pointer:#f4dbd6 --color=marker:#b7bdf8,fg+:#cad3f5,prompt:#c6a0f6,hl+:#ed8796 --color=selected-bg:#494d64 --multi")

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               : 0
    tmux version       : tmux 3.5a
    tmux build flags   : enable-sixel=Unknown
    ZELLIJ_SESSION_NAME: None
    Zellij version     : 0.40.1

Dependencies
    file          : 5.41
    ueberzugpp    : 2.9.2
    ffmpeg/ffprobe: 7.1 / 7.1
    pdftoppm      : 24.04.0
    magick        : 7.1.1-39
    fzf           : 0.55.0
    fd/fdfind     : 10.2.0 / No such file or directory (os error 2)
    rg            : 14.1.1
    chafa         : 1.14.4
    zoxide        : 0.9.6
    7z/7zz        : No such file or directory (os error 2) / No such file or directory (os error 2)
    jq            : 1.7.1

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

When I have two files in a directory and one is a dotfile like so

.xfile
file2

I would like to start yazi and hover the first file with yazi .xfile. Instead, yazi starts up and hovers file2.

Maybe it's the easiest to explain this with a video:

dotfile-hover2.mov

Minimal reproducer

Set manager.show_hidden=true like in https://github.com/mikavilpas/dotfiles/blob/b1e517dc0c00b4302fecbc1112b20f4396a7a9c7/.config/yazi/yazi.toml?plain=1#L13

Anything else?

I git bisected the issue and it looks like the following commit introduced this bug:

4bd8b0b feat: new load DDS event (#1980)

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)
@sxyazi
Copy link
Owner

sxyazi commented Dec 16, 2024

Please try #2057

@mikavilpas
Copy link
Contributor Author

Thanks, that fixed it!

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 file 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 Jan 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants