refactoring
This commit is contained in:
parent
74ae1150a3
commit
69400c1aa3
142 changed files with 11 additions and 70 deletions
11
modules/home/yazi/plugins/smart-enter.yazi/main.lua
Normal file
11
modules/home/yazi/plugins/smart-enter.yazi/main.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- @since 25.2.7
|
||||
--- @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.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
|
||||
end
|
||||
|
||||
return { entry = entry, setup = setup }
|
Loading…
Add table
Add a link
Reference in a new issue