diff --git a/justfile b/justfile index e3059a0..506d08b 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ build: # open a janet repl in a different os window repl: - kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus + kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus --keep-focus kitten @ send-text -m "title:hx_repl:ludus" "janet -s\n" restart: @@ -20,3 +20,5 @@ buffer: sd "$" "\n" | sd "\n\n" "\n" > .repl-buffer.janet kitten @ send-text -m "title:hx_repl:ludus" "(import ./.repl-buffer :prefix \"\")" +doc: + sd "$" "\n" | sd "\n\n" "\n" | xargs -I _ echo "(doc " _ ")" | kitten @ send-text -m "title:hx_repl:ludus" --stdin