summaryrefslogtreecommitdiff
path: root/bin/main.ml
diff options
context:
space:
mode:
authorFederico Igne <undyamon@disroot.org>2024-01-11 19:31:31 +0100
committerFederico Igne <undyamon@disroot.org>2024-01-11 19:31:31 +0100
commit055c743c55bde27f4475d3434c26d8383c0c3ea1 (patch)
treeaabf2173a9995f5795da86d5676181b62fee0e9e /bin/main.ml
parent416c56656af65d656f637dc8c8fdb62d0ba03e29 (diff)
downloadsandy-055c743c55bde27f4475d3434c26d8383c0c3ea1.tar.gz
sandy-055c743c55bde27f4475d3434c26d8383c0c3ea1.zip
bulk: add PoC of vim-like modular editor
Diffstat (limited to 'bin/main.ml')
-rw-r--r--bin/main.ml9
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 @@
1let () = print_endline "Hello, World!" 1open Sand
2
3let () =
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