yazi updates:
This commit is contained in:
parent
67640f5f93
commit
0420380240
4 changed files with 40 additions and 94 deletions
13
modules/home/yazi/plugins/smart-paste.yazi/main.lua
Normal file
13
modules/home/yazi/plugins/smart-paste.yazi/main.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- @sync entry
|
||||
return {
|
||||
entry = function()
|
||||
local h = cx.active.current.hovered
|
||||
if h and h.cha.is_dir then
|
||||
ya.mgr_emit("enter", {})
|
||||
ya.mgr_emit("paste", {})
|
||||
ya.mgr_emit("leave", {})
|
||||
else
|
||||
ya.mgr_emit("paste", {})
|
||||
end
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue