Fork me on GitHub
#cider
<
2022-07-01
>
Toni Tuominen05:07:27

Hello. I would like to set a hotkey to send a code snippet to the repl. How do I do that? I need to restart my servers and it would be nice to have a hotkey to do it anywhere instead of going to a file and evaluating a comment block.

1
dpsutton14:07:49

I use something equivalent in inf-clojure where i store forms in registers. This would work for CIDER: https://gist.github.com/dpsutton/7556cf1f4ecfc97da7b7e9d6dbf210c6

dpsutton14:07:55

highlight a form you want to save and then hit C-x r s <register>

dpsutton14:07:36

I’ll put • queries in q • clojure.test/run-tests in t • an individual test in i(run! tap> (repeat 3 "****")) in c to clear my tap view

dpsutton15:07:57

Indispensable for my workflow now

robert-stuttaford08:07:16

gonna give this a go, thanks @U11BV7MTK