dotfiles/.config/yazi/plugins/arrow.yazi/init.lua

8 lines
191 B
Lua
Raw Normal View History

2024-04-23 04:34:15 +02:00
return {
entry = function(_, args)
local current = cx.active.current
local new = (current.cursor + args[1]) % #current.files
ya.manager_emit("arrow", { new - current.cursor })
end,
}