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

Update file permission after shell command #1017

Closed
1 task
raffaem opened this issue May 8, 2024 · 5 comments · Fixed by #1024
Closed
1 task

Update file permission after shell command #1017

raffaem opened this issue May 8, 2024 · 5 comments · Fixed by #1024
Labels
bug Something isn't working

Comments

@raffaem
Copy link

raffaem commented May 8, 2024

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?

  • Yes, I'll give it a shot

Describe the solution you'd like

Update file permissions after shell command is run

Additional context

No response

@raffaem raffaem added the feature New feature request label May 8, 2024
@sxyazi
Copy link
Owner

sxyazi commented May 8, 2024

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

I can't reproduce it:

a.mp4

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

@sxyazi sxyazi added the waiting on op Waiting for more information from the original poster label May 8, 2024
@raffaem
Copy link
Author

raffaem commented May 9, 2024

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
Copy link
Owner

sxyazi commented May 11, 2024

Please try #1024

@sxyazi sxyazi added bug Something isn't working waiting on op Waiting for more information from the original poster and removed feature New feature request labels May 11, 2024
@raffaem
Copy link
Author

raffaem commented May 11, 2024

Please try #1024

seems to work

@github-actions github-actions bot removed the waiting on op Waiting for more information from the original poster label May 11, 2024
@kohane27
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants