terokarvinen / micro-cheat

F1 Show cheatsheet for the language you're editing: Lua, Go, Python...
https://terokarvinen.com/2022/command-palette-cheatsheet-run-and-make-micro/
MIT License
2 stars 1 forks source link
cheatsheet css ctags documentation go golang haml html javascript lua micro micro-editor micro-plugin plugin python reference

micro-cheat - F1 cheatsheet for the language you're editing

F1 Show cheatsheet for the language you're editing: Lua, Go, Python...

A plugin for Micro editor.

Usage

Edit a source code file with micro. Press F1.

A cheatsheet for the language opens. If you're editing Python, it's a Python cheatsheet. If Go, then Go cheatsheet. Press Ctrl-Q to close the cheatsheet tab and return to editing.

For your convenience, micro-cheat also provides a command 'cheat' that you can bind to any key or run with ctrl-E.

Tested with

Installation

Micro-cheat is now part of official Micro plugin-channel.

$ micro --plugin install cheat

Alternatively, a development install

$ cd $HOME/.config/micro/plug/
$ git clone https://github.com/terokarvinen/micro-cheat

Tutorial

Installation & tutorial for 4 plugins: Palettero, Cheat, Run and Jump

Limitations

All cheatsheets included in cheatsheets/ directory are not supported yet. Micro-cheat has only been tested on Linux.

Todo

Bibtex references cheatsheet. Should be MIT licensed to be included in this plugin.

Adminstrivia

Cheatsheets are from https://devhints.io project, copyright (c) 2021 Rico Sta. Cruz and contributors, received under MIT license.

Micro-cheat plugin is Copyright 2022-2024 Tero Karvinen https://TeroKarvinen.com, MIT license.