diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 13:52:20 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 13:52:20 +0100 |
| commit | c11369732bd59e26b19ff932e27ad18956e48dfc (patch) | |
| tree | 0d54fc1d694c8d9f319d9f9552485c115fe68ac5 /config/yazi/plugins | |
| parent | 1cb65f44bc813fa4e4b24d518714736761f7e544 (diff) | |
| download | dotfiles-c11369732bd59e26b19ff932e27ad18956e48dfc.tar.gz dotfiles-c11369732bd59e26b19ff932e27ad18956e48dfc.tar.bz2 dotfiles-c11369732bd59e26b19ff932e27ad18956e48dfc.zip | |
Update yazi with nice rice
Diffstat (limited to 'config/yazi/plugins')
| -rw-r--r-- | config/yazi/plugins/smart-enter.yazi/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
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, +} |
