Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
szabodanika opened this issue Apr 16, 2022 · 1 comment

Comments

@szabodanika
Copy link

szabodanika commented Apr 16, 2022

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"
    ...
}
@nickreserved
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants