Handy script runner for micro. Speeds up your scripting. :-)
You'll want to get it from micro's plugin site, but if it's not there yet (see #73), you can always do the following:
- Download the latest release
- Place the unzipped
mxc
directory in~/.config/micro/plug
(create theplug
directory if it doesn't already exist)
The sweet, simple script runner. Hit F5
to temporarily suspend the buffer and run your current script in the terminal. Once it's done executing, hit Enter to return, and micro prints any errors in the gutter.
The extended script runner. 😎 Hit F6
to search the current script's directory for a file called .mxc
. If it finds it, it runs .mxc
instead of the current script. If you're in a git repo, it crawls every directory back to the root, executing the first .mxc
it finds. 🔠This can be very useful if you're tweaking a file that's part of a larger project and needs another script for testing.
If true
(default), running mxc
or mxcx
saves your file automatically before running it. 💾
Feel free to log an issue!