12345678910111213141516171819 |
- VERSION = "1.0.0"
- local micro = import("micro")
- local config = import("micro/config")
- local shell = import("micro/shell")
- local strings = import("strings")
- function init()
- config.MakeCommand("calc", calc, config.OptionComplete)
- config.AddRuntimeFile("calc", config.RTPlugin, "calc.lua")
- end
- function calc(buffer_pane, args)
- args = strings.Join(args," ")
- out = shell.ExecCommand("calc", args)
- micro.InfoBar():Message(out)
- end
|