Fork me on GitHub
#vim
<
2019-05-31
>
Hukka08:05:27

@dominicm I was playing again with overtone, and some of those results seem to be really heavy for the pretty printer, when I don't really care about the return value (object that represents a function generator) and just about the side-effect (the values are pushed to the soundcard)

Hukka08:05:58

Normally they are printed just as objects, but the prettyprinter opens them somehow as really big maps

Hukka08:05:55

@dharrigan I don't seem to have the command :EvalCR, is it a standard part of fireplace?

dharrigan08:05:34

Tomi, are you missing the Brackets?

dharrigan08:05:41

nmap <silent> <Leader>E :%Eval<CR>

Hukka08:05:07

Ah, yes. I didn't see the original message anymore, so I was relying on email notifications. Thanks!

dharrigan08:05:23

you're most welcome 😉

Hukka08:05:32

Though I don't understand what the brackets do, and trying to google that 😉

dharrigan08:05:23

It tells vim to insert a carriage return CR

dharrigan08:05:08

i.e., gets vim to press "enter" for you 🙂

Hukka08:05:56

Just found those. I'm afraid that's not going to work for me, since the prettyprinting is just hidden, not skipped 😕

Hukka08:05:20

But I now understand more about customizing bindings, so it's good knowledge!

Hukka08:05:40

If I need this too often, I guess I have to make a binding that sets the pretty printing function to something else, evals and then sets it back. But for now I just set it "permanently" off while I'm editing a overtone file

dominicm09:05:18

@tomi.hukkalainen_slac what pretty printer are you using?

Hukka12:05:49

@dominicm cider.nrepl.pprint/fipp-pprint

dominicm15:05:29

That's usually very fast, there must be loads of data or something

johnj21:05:06

Does fireplace requires cider-nrepl or is nrepl alone enough?

dominicm21:05:25

nrepl alone is enough for the basics, but cider provides additional functionality

johnj21:05:04

thanks, I'm seeing results of evaluation don't get colored syntax, is there a way to change this?

johnj21:05:00

couldn't fine anything in fireplace.txt

johnj21:05:52

#object[java.util.HashSet "0x7c2dc5c7"

johnj21:05:13

there results are also printed like that instead of #{}