A terminal Helix-like text editor implemented in MoonBit with moonbitlang/async.
Dependencies
moon check --target native
moon test --target native
moon run --target native cmd/mx -- notes.txt
moon run --target native cmd/mx -- --help$bat = 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat'
$cmd = '"' + $bat + '" -arch=x64 && moon run --target native cmd/mx -- notes.txt'
cmd.exe /c $cmdmoon check --target native
moon test --target native
moon run --target native cmd/mx -- notes.txt
moon run --target native cmd/mx -- --helpmoon run --target native cmd/mx -- notes.txt --headless --cmd ":go 2" --cmd "key x" --cmd "key y"
moon run --target native cmd/mx -- notes.txt --headless --script edit.meolix# comments are ignored
:go 2
key x
key y
key p
text inserted textasync fn run_commands(editor : Editor, commands : Array[EditorCommand], save_on_write? : Bool) -> DriverResultA terminal Helix-like text editor implemented in MoonBit with moonbitlang/async.
Dependencies