From 28e8bdf7f8286bd431b7f3b709e79f3827b31469 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:54:03 +0900 Subject: updates --- debian/.config/yazi/plugins/smart-enter.yazi/main.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/.config/yazi/plugins/smart-enter.yazi/main.lua (limited to 'debian/.config/yazi/plugins/smart-enter.yazi/main.lua') diff --git a/debian/.config/yazi/plugins/smart-enter.yazi/main.lua b/debian/.config/yazi/plugins/smart-enter.yazi/main.lua new file mode 100644 index 0000000..e9e2ec6 --- /dev/null +++ b/debian/.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