How to copy or cut files/folders to remote vfs in a plugin? #3408
Unanswered
boydaihungst
asked this question in
1. Q&A
Replies: 2 comments
-
|
My current workaround is using these commands to move file, but it isn't good at all. ya.emit("escape", { select = true })
local valid_selected_files = {}
valid_selected_files[#valid_selected_files + 1] = tostring(tmp_cache_path)
valid_selected_files.state = "on"
ya.emit("toggle_all", valid_selected_files)
ya.emit("yank", { cut = true })
ya.emit("cd", { tostring(output_url_maybe_vfs.parent), raw = true })
ya.emit("paste", { force = true }) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
There isn't yet. I'll see if I can add it before the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
Kitty 0.42
yazi --debugoutputSorry, I'm not with my pc for now.Describe the question
My question is, is there any command or yazi api to copy or cut files/folders from a local to remote vfs URL? Since remote vfs doesn't actually exist in file system, lua api
os.renamedoesn't work anymore.Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions