You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all love Micro, coming from Nano I find it super easy to adopt and enjoy it simplicity/plugins.
Only down side it I use MacOS with a Windows style SteelSeries keyboard and keybindings are a pita. I managed to set what I need in my bindings.json although Micro seems to have a mind of its own and the keybindings randomly change.
This could be while using the editor or upon next use.
Looks like it could be switching between it's base default config and then my specific bindings.json config at random times, rather than just using my config. Notably, SpawnMultiCursor* keybindings and Paragraph*/Word* keybindings seem to swap/unset or get messed up. Any ideas?
The bindings.json file can get re-written when a new keybinding is made with bind command, or more commonly when a plugin runs config.TryBindKey when micro is started 1. I have used the following workarounds in the past to prevent this from happening:
Disable plugins that use config.TryBindKey, or make sure all keybindings they try to set are already bound to something else 2
Remove write permissions for your bindings.json file (chmod -w ~/.config/micro/bindings.json)
The re-formatting should not break any keybindings though even if the JSON looks a bit different – did some of your keybindings break? Which ones?
Footnotes
For example if you remove the built-in comment plugin's keybinding "CtrlUnderscore": "lua:comment.comment", the plugin will "helpfully" add it back for you the next time you start micro if you didn't bind it to anything else. ↩
Unfortunately plugins may still opt to overwrite the keybindings (see TryBindKey documentation), but vast majority of plugins are well behaved and don't do that. ↩
Description of the problem or steps to reproduce
First of all love Micro, coming from Nano I find it super easy to adopt and enjoy it simplicity/plugins.
Only down side it I use MacOS with a Windows style SteelSeries keyboard and keybindings are a pita. I managed to set what I need in my
bindings.json
although Micro seems to have a mind of its own and the keybindings randomly change.This could be while using the editor or upon next use.
Looks like it could be switching between it's base default config and then my specific bindings.json config at random times, rather than just using my config. Notably,
SpawnMultiCursor*
keybindings andParagraph*
/Word*
keybindings seem to swap/unset or get messed up. Any ideas?bindings.json
Specifications
The text was updated successfully, but these errors were encountered: