From bb42ca7ca4ce9656644a38ab62b584b4b6655c28 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Sat, 6 Apr 2024 16:58:11 -0400 Subject: [PATCH] Add doc command to justfile --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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