sxyazi / yazi

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

Update file permission after shell command #1017

Closed raffaem closed 4 months ago

raffaem commented 4 months ago

Please describe the problem you're trying to solve

Hover over a file, open shell with ;, and type chmod +x $1. The file is rendered executable, but the permissions shown on the bottom right corner are not updated.

Would you be willing to contribute this feature?

Describe the solution you'd like

Update file permissions after shell command is run

Additional context

No response

sxyazi commented 4 months ago

but the permissions shown on the bottom right corner are not updated.

I can't reproduce it:

https://github.com/sxyazi/yazi/assets/17523360/92b83965-72fa-4086-a174-123bb38c4700

What's your Yazi version and OS? Also what does yazi --debug say? Could you record a GIF to let me follow your steps?

raffaem commented 4 months ago

20240509T042024.webm

➜  yy --debug

Yazi
    Version: 0.2.5 (Arch Linux 2024-04-27)
    OS: linux-x86_64 (unix)
    Debug: false

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

Adaptor
    Adaptor.matches: Kitty

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/bash")
    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.45\nmagic file from /usr/share/file/misc/magic\nseccomp support included\n", stderr: "" })

Text Opener
    default: Some(Opener { run: "nvim \"$@\"", block: true, orphan: false, desc: "nvim", for_: None, spread: true })
    block: Some(Opener { run: "nvim \"$@\"", block: true, orphan: false, desc: "nvim", 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 "/home/raffaele/.local/state/yazi" directory.
sxyazi commented 4 months ago

Please try https://github.com/sxyazi/yazi/pull/1024

raffaem commented 4 months ago

Please try #1024

seems to work

kohane27 commented 3 months ago

I had the same problem in ya 0.2.5 (stable version installed from archlinux extra package 0.2.5-2).

Confirmed it's fixed in Yazi 0.2.5 (0ff4835 2024-05-18)

Thank you!

github-actions[bot] commented 2 months ago

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.