Fork me on GitHub
#conjure
<
2023-12-13
>
Proctor02:12:37

has anybody set up a nice way to eval word and replace with result, or eval visual selection and replace with result? feels a bit heavy handed to wrap the selection (work or visual selection) in a do block each time to get a form one can evaluate and replace

emilaasa13:12:53

Depending in your setup that could be mapped to a keypress (wrap in do and eval). Another way is adding the command to conjure, I think it's here: https://github.com/Olical/conjure/blob/4880144f13a7693cded529b302de491bfbaedbd6/fnl/conjure/eval.fnl#L197