Replies: 3 comments 6 replies
-
There is a sudo plugin already for yazi https://github.com/TD-Sky/sudo.yazi, though it depends on nushell, someone needs to port the code if they want to use it on another shell I'm afraid... |
Beta Was this translation helpful? Give feedback.
-
I used gemini cli to translate the NuShell code to python and ruby if anyone doesn't want to install nushell just for this plugin: |
Beta Was this translation helpful? Give feedback.
-
Yazi implements its own file operations such as copy, move, and creation, instead of relying on commands like On *nix, it's not possible to elevate privileges without exiting the current (Yazi) process, and if you do need to exit the current process, then using The reasons for not relying on
What Closing as a duplicate of #435 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I found the good solution for using sudo command for copy, move, rename, delete, edit, view files.
https://codeberg.org/sylphenix/sff/wiki#sudo-mode
This is a clever and attractive solution. I press CTRL+T, the letter S appears in statusbar (foreground black, background red), and when I do a copy, move, rename, open a file, etc., it automatically starts the command with a sudo. It gets the associated password and runs it. I think this is a very civilized solution. It would be worthwhile to develop this into it.
Can someone program this?
Beta Was this translation helpful? Give feedback.
All reactions