Skip to content

Instantly share code, notes, and snippets.

@henri
Last active July 18, 2024 22:03
Show Gist options
  • Save henri/0e55eb61896baef0f6015ea955705363 to your computer and use it in GitHub Desktop.
Save henri/0e55eb61896baef0f6015ea955705363 to your computer and use it in GitHub Desktop.
micro text editor cheatsheet
# link to plugins :
https://micro-editor.github.io/plugins.html
# open file in readonly mode
micro -readonly on <file_to_open_read_only.txt>
# bindings file :
~/.config/micro/bindings.json
# bindings help :
https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md
# if you want to toggle then it is possible with function in lua - but toggle is not yet implimented - see this link :
https://github.com/zyedidia/micro/issues/1806
https://github.com/zyedidia/micro/issues/3324
https://github.com/zyedidia/micro/issues/2086#issuecomment-826351299
{
"Alt-m": "command:set mouse false",
"Alt-M": "command:set mouse true",
"Alt-/": "lua:comment.comment",
"Ctrl-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment