From 2cbc39029cc024b89a33eb91e60ee3489dbbc906 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Sun, 7 Jan 2024 20:09:01 -0500 Subject: [PATCH] Janet repl things --- .gitignore | 1 + justfile | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2379caa..c67298e 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ node_modules/ .cljs_node_repl/ .helix/ target/repl-port +.repl-buffer diff --git a/justfile b/justfile index c1a9751..3d3df34 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,15 @@ build: shadow-cljs release module repl: - kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus lein repl + kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus janet -s + +repeater: + kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus bat + +eval: + sd "$" "\n" | sd "(\n)+" "\n" | kitten @ send-text -m "title:hx_repl:ludus" --stdin + +buffer: + sd "$" "\n" > .repl-buffer + kitten @ send-text -m "title:hx_repl:ludus" --from-file .repl-buffer -send: - kitten @ send-text -m "title:hx_repl:ludus" --stdin