reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
imre 2021-02-08T11:03:48.064100Z

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

imre 2021-02-08T11:08:48.064800Z

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

nbardiuk 2021-02-08T11:38:57.065300Z

it is Ctrl-L https://github.com/vlaaad/reveal/pull/14#issuecomment-741992148

βœ”οΈ 1
imre 2021-02-08T12:32:50.065900Z

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

imre 2021-02-08T12:34:39.066200Z

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

imre 2021-02-08T12:39:08.067100Z

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

imre 2021-02-08T12:40:33.067300Z

weird...

imre 2021-02-08T12:42:56.067700Z

Same for all other ctrl or alt shortcuts

vlaaad 2021-02-08T12:49:02.067900Z

weird indeed

vlaaad 2021-02-08T12:49:40.068600Z

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

imre 2021-02-08T12:51:20.069200Z

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

imre 2021-02-08T12:52:17.069400Z

PEBKAC

imre 2021-02-08T12:53:32.069700Z

yeah totally

imre 2021-02-08T12:53:50.070100Z

sorry for being a muppet

😁 2
imre 2021-02-08T12:56:00.070700Z

tapping commands also works now

πŸ‘ 1
imre 2021-02-08T12:56:35.071400Z

Excellent! Thank you!

timo 2021-02-08T14:19:38.072100Z

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?

dharrigan 2021-02-08T14:23:33.073Z

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.

πŸ‘ 2
vlaaad 2021-02-08T14:43:37.073900Z

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

dharrigan 2021-02-08T14:44:31.074800Z

Nothing is selected

vlaaad 2021-02-08T14:44:31.074900Z

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

vlaaad 2021-02-08T14:44:51.075300Z

if there is output, there is selection

vlaaad 2021-02-08T14:45:36.076200Z

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

πŸ‘ 2
dharrigan 2021-02-08T14:46:29.077200Z

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.

dharrigan 2021-02-08T14:46:34.077500Z

so latest is always on top

vlaaad 2021-02-08T14:49:56.077700Z

yeah that’s nice

vlaaad 2021-02-08T20:43:17.079800Z

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

πŸŽ‰ 8
seancorfield 2021-02-08T21:48:45.082200Z

@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.

seancorfield 2021-02-08T21:53:17.082600Z

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

seancorfield 2021-02-08T21:55:26.083100Z

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

seancorfield 2021-02-08T21:58:59.084300Z

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 πŸ‘€

vlaaad 2021-02-08T22:08:37.084500Z

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

vlaaad 2021-02-08T22:09:21.084700Z

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

vlaaad 2021-02-08T22:18:00.085200Z

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

seancorfield 2021-02-08T22:25:02.085800Z

Not easily. It's big data structure full of Google Cloud AI Vision API result objects πŸ‘€

seancorfield 2021-02-08T22:25:40.086500Z

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?

vlaaad 2021-02-08T22:26:50.086700Z

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

vlaaad 2021-02-08T22:27:19.087100Z

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

seancorfield 2021-02-08T22:27:23.087300Z

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

seancorfield 2021-02-08T22:27:50.087800Z

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

vlaaad 2021-02-08T22:31:24.087900Z

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