diff options
| author | krolxon <krolyxon@tutanota.com> | 2025-09-10 20:02:20 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2025-09-10 20:02:20 +0530 |
| commit | 27e23c7b32b54fb1d3006ced8adda69631a961f6 (patch) | |
| tree | 459fa5899687e37bf1d499bbd02d0b0b3a42082d /.config/yazi/plugins/smart-enter.yazi/main.lua | |
| parent | c7ffe6ea3a6eb26e88033180f7014258b1495a1d (diff) | |
yazi: include plugins as well
Diffstat (limited to '.config/yazi/plugins/smart-enter.yazi/main.lua')
| -rw-r--r-- | .config/yazi/plugins/smart-enter.yazi/main.lua | 11 |
1 files changed, 11 insertions, 0 deletions
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 } |
