Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terokarvinen/micro-run
F5 to save & run, F12 to make, F9 make in background. Plugin for Micro editor
https://github.com/terokarvinen/micro-run
editor go golang lua make makefile micro micro-editor micro-editor-plugin plugin python shortcut
Last synced: 3 months ago
JSON representation
F5 to save & run, F12 to make, F9 make in background. Plugin for Micro editor
- Host: GitHub
- URL: https://github.com/terokarvinen/micro-run
- Owner: terokarvinen
- License: mit
- Created: 2022-11-02T14:57:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T08:46:11.000Z (9 months ago)
- Last Synced: 2024-08-02T15:54:25.884Z (6 months ago)
- Topics: editor, go, golang, lua, make, makefile, micro, micro-editor, micro-editor-plugin, plugin, python, shortcut
- Language: Lua
- Homepage: https://terokarvinen.com/2022/command-palette-cheatsheet-run-and-make-micro/
- Size: 46.9 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# micro-run
*Press F5 to save and run the current file, F12 to make, F9 to make in background*
F12 compiles your project even if Makefile is in a higher directory. It goes up (cd ..) until it finds make file or is at root directory.
F9 runs 'make' in background, allowing you to keep editing while your project compiles.
![micro-run screenshot - press F5 to run current file](micro-run.png)
Micro run is a plugin for Micro editor.
F5 save & run supports Go, Go test, Python 3, Lua and executable files.
As an extra feature, micro-run can run any script that's marked as executable - in any language. In Linux, executable files are those that have 'chmod u+x foo' set and usually start with a shebang "#!/usr/bin/foo".
Micro-run is now part of official micro plugin channel.
## Use Case
When coding, it's convenient to run the current file and see the result immediately. Especially for Go (Golang) and other languages that don't have an interactive shell (REPL), it's nice to quickly test new features by writing a short program and hitting F5.
A feature for quickly running the code you are editing is common in integrated development environments (IDEs).
## Limitations
Tested only on Linux, might also work on other systems.
As you are literally running the current file, no effort has been taken to prevent file name based injections. Does not work with file names with spaces or other special characters.
## See also
[micro-jump](https://github.com/terokarvinen/micro-jump) - Jump to any function, class or heading with F4. Go, Markdown, Python, C... (+40 others). A plugin for micro editor.