From d3a1e109832bf411bbe9d06c7fbea8be356fd32d Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Sun, 7 Jan 2024 22:58:03 -0500 Subject: [PATCH] Improve repl commands --- justfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 3d3df34..363f2cd 100644 --- a/justfile +++ b/justfile @@ -1,17 +1,17 @@ -# start a repl +# build clojurescript release build: shadow-cljs release module +# open a janet repl in a different os window 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 - +# send what's selected to the repl and evaluate it eval: - sd "$" "\n" | sd "(\n)+" "\n" | kitten @ send-text -m "title:hx_repl:ludus" --stdin + sd "$" "\n" | sd "\n\n" "\n" | kitten @ send-text -m "title:hx_repl:ludus" --stdin +# send what's selected to a buffer, and then evaluate what's in the buffer buffer: - sd "$" "\n" > .repl-buffer + sd "$" "\n" | sd "\n\n" "\n" > .repl-buffer kitten @ send-text -m "title:hx_repl:ludus" --from-file .repl-buffer