diff options
| author | Federico Igne <undyamon@disroot.org> | 2024-01-11 19:31:31 +0100 |
|---|---|---|
| committer | Federico Igne <undyamon@disroot.org> | 2024-01-11 19:31:31 +0100 |
| commit | 055c743c55bde27f4475d3434c26d8383c0c3ea1 (patch) | |
| tree | aabf2173a9995f5795da86d5676181b62fee0e9e /bin | |
| parent | 416c56656af65d656f637dc8c8fdb62d0ba03e29 (diff) | |
| download | sandy-055c743c55bde27f4475d3434c26d8383c0c3ea1.tar.gz sandy-055c743c55bde27f4475d3434c26d8383c0c3ea1.zip | |
bulk: add PoC of vim-like modular editor
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/main.ml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/main.ml b/bin/main.ml index 7bf6048..75328c9 100644 --- a/bin/main.ml +++ b/bin/main.ml | |||
| @@ -1 +1,8 @@ | |||
| 1 | let () = print_endline "Hello, World!" | 1 | open Sand |
| 2 | |||
| 3 | let () = | ||
| 4 | let open Editor in | ||
| 5 | let cli = Config.parse Sys.argv in | ||
| 6 | let editor = Editor.init cli in | ||
| 7 | let rec loop () = Action.(render *> handle_next_command2 >>= loop) in | ||
| 8 | Action.eval ~editor loop | ||
