sxyazi / yazi

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

View not updated after file operations within symbolically linked directories #1173

Closed Brixy closed 1 week ago

Brixy commented 1 week ago

What system are you running Yazi on?

Linux Wayland

What terminal are you running Yazi in?

foot version: 1.17.2 +pgo +ime +graphemes -assertions

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 (61d5f42 2024-06-20) Debug : false OS : linux-x86_64 (unix) Ya Version: 0.2.5 Emulator Emulator.via_env: ("foot", "") Emulator.via_csi: Ok(Foot) Emulator.detect : Foot Adapter Adapter.matches: Sixel Desktop XDG_SESSION_TYPE: Some("wayland") WAYLAND_DISPLAY : Some("wayland-1") DISPLAY : Some(":0") SSH shared.in_ssh_connection: false WSL /proc/sys/fs/binfmt_misc/WSLInterop: false Variables SHELL : Some("/usr/bin/yash") EDITOR : Some("hx") ZELLIJ_SESSION_NAME: None YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None Text Opener default: Some(Opener { run: "$EDITOR \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) block : Some(Opener { run: "$EDITOR \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) tmux TMUX : false Version: No such file or directory (os error 2) Dependencies file : 5.45 ueberzugpp : No such file or directory (os error 2) ffmpegthumbnailer: No such file or directory (os error 2) magick : 7.1.1-33 fzf : 0.53.0 fd : 10.0.0 rg : 14.1.0 chafa : No such file or directory (os error 2) zoxide : 0.9.4 unar : No such file or directory (os error 2) jq : No such file or directory (os error 2) -------------------------------------------------- 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 "/home/brixy/.local/state/yazi" directory. ```
Latest log entries ```sh 2024-06-20T11:14:27.005968Z WARN yazi_adapter::emulator: [Adapter] No special environment variables detected at yazi-adapter/src/emulator.rs:70 2024-06-20T11:14:27.006017Z WARN yazi_adapter::emulator: [Adapter] Unknown TERM_PROGRAM: at yazi-adapter/src/emulator.rs:84 ```

Describe the bug

Within a symbolically linked directory after file operations yazi's view is not updated, so that new file are not visible.

Expected Behavior

I would expect the see new files after creating, moving or copying them into a symbolically linked directory.

To Reproduce

mkdir test-dir

ln -s test-dir test-dir-symbolic

cd test-dir-symbolic

yazi

a test-file <ENTER> # The created file is not visible

h l # Now, the file is visible

Configuration

Default configs.

Anything else?

I am on musl.

Not quite sure whether symbolically linked directories are anything special on UNIX systems, but this is what I any many other folks use for their dotfiles:

for file in ${dotfiles}/config/*; do
    ln -s ${file} ~/.config/
done

Thank you!!