feat: handle api legacy calls and update signature

This commit is contained in:
Rami Elwan
2025-05-18 09:43:44 +02:00
parent eab4fe5fed
commit df1f535e20
2 changed files with 17 additions and 4 deletions

View File

@@ -182,6 +182,10 @@ Api.tree.get_nodes = wrap_explorer("get_nodes")
Api.tree.find_file = wrap(actions.tree.find_file.fn)
Api.tree.search_node = wrap(actions.finders.search_node.fn)
---@class ApiTreeCollapseAllOpts
---@field keep_buffers boolean|nil default false
Api.tree.collapse_all = wrap(actions.tree.modifiers.collapse_all.fn)
Api.tree.expand_all = wrap_node(actions.tree.modifiers.expand_all.fn)
Api.tree.toggle_enable_filters = wrap_explorer_member("filters", "toggle")