Remove toggle_descend_until

This commit is contained in:
ghostbuster91 2025-08-02 14:46:19 +02:00
parent e3c3105e57
commit 71271e3149
No known key found for this signature in database

View File

@ -269,19 +269,6 @@ local function edit(mode, node, edit_opts)
end end
end end
Api.tree.toggle_descend_until = wrap_node(function(node, descend_until)
local dir = node:as(DirectoryNode)
if dir then
if node.open then
dir:expand_or_collapse(nil)
else
actions.tree.modifiers.expand.all(node, { descend_until = descend_until })
end
else
edit("edit", node)
end
end)
---@param mode string ---@param mode string
---@param toggle_group boolean? ---@param toggle_group boolean?
---@return fun(node: Node, edit_opts: NodeEditOpts?) ---@return fun(node: Node, edit_opts: NodeEditOpts?)