[yazi] Add nav in parent dir

This commit is contained in:
aloslider committed 2026-07-26 19:13:30 +03:00
1 parent a7e0f242c2
commit 6dec3bf52d
2 files changed
+39 -7

No files matched your search

@@ -0,0 +1,12 @@
--- @sync entry
local function entry(_, job)
local parent = cx.active.parent
if not parent then return end
local target = parent.files[parent.cursor + 1 + job.args[1]]
if target and target.cha.is_dir then
ya.emit("cd", { target.url })
end
end
return { entry = entry }