Remove toggle_descend_until
This commit is contained in:
parent
e3c3105e57
commit
71271e3149
@ -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?)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user