From c11369732bd59e26b19ff932e27ad18956e48dfc Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 21 Nov 2024 13:52:20 +0100 Subject: Update yazi with nice rice --- config/yazi/plugins/smart-enter.yazi/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/yazi/plugins/smart-enter.yazi/init.lua (limited to 'config/yazi/plugins') diff --git a/config/yazi/plugins/smart-enter.yazi/init.lua b/config/yazi/plugins/smart-enter.yazi/init.lua new file mode 100644 index 0000000..8724200 --- /dev/null +++ b/config/yazi/plugins/smart-enter.yazi/init.lua @@ -0,0 +1,9 @@ +-- from: https://yazi-rs.github.io/docs/tips#smart-enter + +--- @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, +} -- cgit