Fork me on GitHub
#dirac
<
2017-11-28
>
p-himik03:11:37

Yup, I tried every usual keystroke on Ubuntu - didn't work. Good to know that it's possible with history. Maybe I'll give it a try when time permits.

p-himik05:11:03

I guess it's more cljs-devtools related, but there's no channel devoted to it. When printing large nested CLJS data structures, the formatter tends to layout them horizontally. I think it depends on the number of elements in a collection. E.g. I have a list of two items - there's no triangle icon to expand it next to it. But those two items are rather wide when printed out, so if I expand both of them, I'll have to constantly scroll the whole screen horizontally to be able to check them both. Is it possible to somehow change it? Maybe there's some setting on how large a collection should be for the triangle icon to appear?

danielcompton05:11:58

@p-himik there are settings for how many items in a collection before elipsis, defaults to 5 IIRC

danielcompton05:11:33

It would be really useful to be able to configure Dirac to print into a width budget so you don't hit the kind of things you mention

danielcompton05:11:46

The setting for how large a collection should be before it gets a disclosure triangle defaults to 3

p-himik06:11:14

@danielcompton Could you please point me towards where these settings are? In https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/defaults.cljs the only setting that sounds relevant to the disclosure triangle is :min-expandable-sequable-count-for-well-known-types, but it's set to 4.

p-himik06:11:19

Ah, that appears to be the correct option, yes.

p-himik06:11:05

Another thing - when I click on a disclosure triangle, it always makes the console window scroll back to the left. Is there any way to prevent it?