cadnza / mxc

The micro executor πŸ”¨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microExecutor

Handy script runner for micro. Speeds up your scripting. :-)

Install

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:

  1. Download the latest release
  2. Place the unzipped mxc directory in ~/.config/micro/plug (create the plug directory if it doesn't already exist)

Commands

F5: mxc

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.

F6: mxcx

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.

Options

mxc.saveOnRun

If true (default), running mxc or mxcx saves your file automatically before running it. πŸ’Ύ

Questions?

Feel free to log an issue!

About

The micro executor πŸ”¨

License:Creative Commons Zero v1.0 Universal


Languages

Language:Lua 55.9%Language:Shell 44.1%