feat(explorer): navigate with h/l to close/open directories. Closes #833

This commit is contained in:
Folke Lemaitre 2025-01-31 20:51:51 +01:00
parent f936021dfe
commit 4b29ddc5d9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 8 additions and 0 deletions

View file

@ -294,6 +294,12 @@ M.actions = {
explorer_up = function(picker)
M.get_state(picker):up()
end,
explorer_close = function(picker)
local state = M.get_state(picker)
local dir = state:dir()
state.expanded[dir] = false
state:update()
end,
explorer_add = function(picker)
local state = M.get_state(picker)
Snacks.input({