summaryrefslogtreecommitdiff
path: root/ar/.config/yazi/plugins/smart-paste.yazi/main.lua
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 20:49:49 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-09-13 20:49:49 +0900
commitbdc608acabe856db2134642816cc806b34894863 (patch)
tree61cbcb30acbcafb56853bb77e5c89efae8f52dc2 /ar/.config/yazi/plugins/smart-paste.yazi/main.lua
parent805711c3406fd5360486460bcc6dfb6f741fd69c (diff)
modified shell/bm-dirs, modified shell/bm-files, created yazi/
Diffstat (limited to 'ar/.config/yazi/plugins/smart-paste.yazi/main.lua')
-rw-r--r--ar/.config/yazi/plugins/smart-paste.yazi/main.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/ar/.config/yazi/plugins/smart-paste.yazi/main.lua b/ar/.config/yazi/plugins/smart-paste.yazi/main.lua
new file mode 100644
index 0000000..0837a4b
--- /dev/null
+++ b/ar/.config/yazi/plugins/smart-paste.yazi/main.lua
@@ -0,0 +1,14 @@
+--- @since 25.5.31
+--- @sync entry
+return {
+ entry = function()
+ local h = cx.active.current.hovered
+ if h and h.cha.is_dir then
+ ya.emit("enter", {})
+ ya.emit("paste", {})
+ ya.emit("leave", {})
+ else
+ ya.emit("paste", {})
+ end
+ end,
+}