Fork me on GitHub
#reveal
<
2021-02-08
>
imre11:02:48

Hey there. Is there a mouse/keyboard command in reveal that would clear the output panel?

imre11:02:48

I'm using reveal only as a tap as described in https://vlaaad.github.io/reveal/#ui and couldn't get the editor commands work for some reason

imre12:02:50

Thank you sir! I only checked the user guide and it wasn't there

imre12:02:39

although it doesn't appear to be working...

imre12:02:08

It seems that my reveal window doesn't see ctrl being pressed. I'm on a mac. Checked global shortcuts and I don't seem to have anything clashing

imre12:02:33

weird...

imre12:02:56

Same for all other ctrl or alt shortcuts

vlaaad12:02:02

weird indeed

vlaaad12:02:40

How about clear command? have you tried evaluating (tap> {:vlaaad.reveal/command '(clear-output)}) ?

imre12:02:20

it doesn't work either but I might have found something. Seems I'm using some old version

imre12:02:32

yeah totally

imre12:02:50

sorry for being a muppet

😁 6
imre12:02:00

tapping commands also works now

👍 3
imre12:02:35

Excellent! Thank you!

timo14:02:38

Hi! Why is my reveal not following the output at the end of the window like with less or something? Is there some config I have to set?

dharrigan14:02:33

That is one of my peeves as well, it starts off well, then somehow, it gets "stuck" and doesn't advance onwards whenever new output is sent to it. I suspect, that a focus on it, moving up and down the scrollbar does this.

👍 6
vlaaad14:02:37

it does autoscrolling when latest value is selected, if you select something else it wont autoscroll

dharrigan14:02:31

Nothing is selected

vlaaad14:02:31

otherwise it is hard to explore if newly submitted values constantly move selection

vlaaad14:02:51

if there is output, there is selection

vlaaad14:02:36

with that said, I also find this behavior annoying as hell, I’ll add more heuristics to determine when to autoscroll

👍 6
dharrigan14:02:29

I'm playing with reveal and portal, to see which works for me (both are great). A thing I like about portal is that puts the latest to the top, and pushes the rest down.

dharrigan14:02:34

so latest is always on top

vlaaad14:02:56

yeah that’s nice

vlaaad20:02:17

Hey folks, I just released 1.3.195 with 2 important changes: • auto-scrolling to bottom is more aggressive — big QoL improvement! • fixed exception on submitting sorted collections that don't contain keywords

🎉 26
seancorfield21:02:45

@vlaaad I just noticed that the code input field no longer works: if I select, say, a sequence value and press space, then type (count *v) in the input field, nothing submits it. return/`enter` used to work but it no longer does anything.

vlaaad22:02:37

You mean this was introduced in 1.3.195 ? odd... I can't reproduce it, (count *v) works on maps as well as seqs...

vlaaad22:02:21

maybe there is an exception stacktrace somewhere in some process output?

seancorfield21:02:17

Hmm, weird. It seems to work standalone. Will continue digging...

seancorfield21:02:26

It works on some sequences and not on others. Odd.

seancorfield21:02:59

I can't see any obvious pattern to what works and what doesn't. I have a big nested data structure and I can run code on some of the values inside it, but not on their surrounding hash maps or lazy sequences 👀

vlaaad22:02:00

can you share example sequence where it doesn't work?

seancorfield22:02:02

Not easily. It's big data structure full of Google Cloud AI Vision API result objects 👀

seancorfield22:02:40

Now I've transformed the result to pure Clojure data, it all works again, so it seems to be something about data structures containing Java objects?

vlaaad22:02:50

Hmm, eval in action popup embeds selected value in code (i.e. changes the form), perhaps it fails in some cases

vlaaad22:02:19

I'll look into that tomorrow, it's almost midnight here...

seancorfield22:02:23

It was initially a sequence built by (for [obj google-objs] (bean obj))

seancorfield22:02:50

But those Google objects are crazy nested objects-within-objects stuff. Ugh!

vlaaad22:02:24

Actually I was wrong, it doesn't embed objects in form...