filemanager-plugin icon indicating copy to clipboard operation
filemanager-plugin copied to clipboard

[Question] Bindings.json works with "tree" but not with "filemanager.toggle_tree"

Open szabodanika opened this issue 2 years ago • 1 comments

The ReadMe says I should be using the API function names like "filemanager.toggle_tree", but my bindings.json only works if I use the same command as what I would put in Ctrl + E (like "tree"). Is this expected and I'm somehow using it incorrectly or did Micro change how bindings.json works or is the ReadMe just incorrect? Thanks!

bindings.json
{
    ...
    "Ctrl-p": "command:tree", # works!
    # "Ctrl-p": "command:filemanager.toggle_tree",  gives "Unknown command filemanager.toggle_tree"
    ...
}

szabodanika avatar Apr 16 '22 17:04 szabodanika

Thank you about "command:tree". This make me think the following which works: "Ctrl-p": "lua:filemanager.toggle_tree"

nickreserved avatar Nov 18 '22 22:11 nickreserved