From 27e23c7b32b54fb1d3006ced8adda69631a961f6 Mon Sep 17 00:00:00 2001 From: krolxon Date: Wed, 10 Sep 2025 20:02:20 +0530 Subject: yazi: include plugins as well --- .config/yazi/plugins/smart-enter.yazi/main.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/yazi/plugins/smart-enter.yazi/main.lua (limited to '.config/yazi/plugins/smart-enter.yazi/main.lua') diff --git a/.config/yazi/plugins/smart-enter.yazi/main.lua b/.config/yazi/plugins/smart-enter.yazi/main.lua new file mode 100644 index 0000000..e9e2ec6 --- /dev/null +++ b/.config/yazi/plugins/smart-enter.yazi/main.lua @@ -0,0 +1,11 @@ +--- @since 25.5.31 +--- @sync entry + +local function setup(self, opts) self.open_multi = opts.open_multi end + +local function entry(self) + local h = cx.active.current.hovered + ya.emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi }) +end + +return { entry = entry, setup = setup } -- cgit v1.2.3