Improve repl commands
This commit is contained in:
parent
ff40d395f8
commit
d3a1e10983
12
justfile
12
justfile
|
@ -1,17 +1,17 @@
|
||||||
# start a repl
|
# build clojurescript release
|
||||||
build:
|
build:
|
||||||
shadow-cljs release module
|
shadow-cljs release module
|
||||||
|
|
||||||
|
# open a janet repl in a different os window
|
||||||
repl:
|
repl:
|
||||||
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus janet -s
|
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus janet -s
|
||||||
|
|
||||||
repeater:
|
# send what's selected to the repl and evaluate it
|
||||||
kitten @ launch --type=os-window --allow-remote-control --cwd=current --title=hx_repl:ludus bat
|
|
||||||
|
|
||||||
eval:
|
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:
|
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
|
kitten @ send-text -m "title:hx_repl:ludus" --from-file .repl-buffer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user