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