addet smart enter snippet for 'l'
This commit is contained in:
parent
6d68da8217
commit
ab075c85f7
2 changed files with 13 additions and 1 deletions
7
plugins/smart-enter.yazi/init.lua
Normal file
7
plugins/smart-enter.yazi/init.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
--- @sync entry
|
||||
return {
|
||||
entry = function()
|
||||
local h = cx.active.current.hovered
|
||||
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = true })
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue