reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
vlaaad 2020-11-05T21:19:56.164600Z

Hey there! I just released 1.0.154 with natural structural navigation, please give it a try! I'll update the docs soon... Structural nav is used with Alt+Arrows, and it's "natural" in a sense that you press the arrow of the direction you want the cursor to move, and it jumps by value. Hard to explain, but it's sort of similar to navigating the tables and REBL. Very curious to hear your opinions since I haven't seen such struct nav implementations before

vlaaad 2020-11-05T21:24:17.167600Z

I also updated auto-scrolling behavior to use structural information in a way that shows the start of the output instead of always scrolling to the bottom... Should have been 1.1.154 really :D

seancorfield 2020-11-05T21:47:55.168100Z

@vlaaad Thanks. Will update right now and let you know how it goes 🙂

👍 1
vlaaad 2020-11-05T21:53:56.168600Z

Documented it here: https://vlaaad.github.io/reveal/#structural-navigation

seancorfield 2020-11-05T22:01:54.170Z

Hmm, I don't have home/end keys on my (mac) keyboard. If I'm inside a vector of hash maps and on the { of a map, I would expect alt-down to take me to the { of the next element of the vector, but it takes me a few elements inside it, as if it is navigating a bit too far?

vlaaad 2020-11-06T08:15:34.177400Z

btw have you seen these messages? > I remember you mentioning long time ago that fastest way to navigate for you was using alt arrows that scrolls by N rows or something > I remember it because it felt off since Reveal didn’t have such a thing

vlaaad 2020-11-08T16:05:07.184600Z

@seancorfield ping :) have you tried structural navigation on a different mac? I couldn't reproduce your problem. What jdk do you use btw?

seancorfield 2020-11-08T17:19:57.184800Z

We only have one Mac. I've been using JDK 14 mostly. I'll confirm the JDK and OpenJFX versions when I get to my desk.

vlaaad 2020-11-09T18:54:35.185600Z

Fn+Option+Left and Fn+Option+Right worked for me as Alt+Home /`Alt+End` on mac

vlaaad 2020-11-09T18:55:09.185800Z

do you still experience brokenness of structural navigation?

vlaaad 2020-11-09T18:57:15.186Z

and Fn+Option+Down / Fn+Option+Up (as well as just Fn+Up/`Fn+Down`) work for me as a textual, not structural, Page Up / Page Down

vlaaad 2020-11-09T18:58:23.186400Z

(there is no structural Page Up/Down)

seancorfield 2020-11-09T19:39:53.186600Z

@vlaaad Yeah, I figured out the home/end further up in this thread. My current JDK is 15+36 and my OpenJFX is 15-ea+6.

seancorfield 2020-11-09T19:40:33.186800Z

I'm on 1.1.159 of Reveal.

seancorfield 2020-11-09T19:41:27.187Z

I did some brief work over the weekend on my Windows laptop and I'm running Reveal there on WSL via VcXsrv and structural navigation seemed more in line with what you described and what I expected.

seancorfield 2020-11-09T19:41:43.187200Z

I haven't really dug into it at work today yet.

seancorfield 2020-11-05T22:02:41.170800Z

So then I have to go up up left to get back to the { and then alt-down takes me to the same relative element of the next map (the third key)

seancorfield 2020-11-05T22:03:15.171500Z

Combined with the auto-scroll to display the start of each printed expr, it's definitely an improvement.

🦜 1
vlaaad 2020-11-05T22:12:31.171600Z

hmm, that shouldn't happen... can you share that vector of hashmaps?

seancorfield 2020-11-05T22:13:12.171800Z

Not easily, it's a large blob of data from our system at work.

seancorfield 2020-11-05T22:13:27.172Z

If it matters, it uses qualified keywords for all the keys?

vlaaad 2020-11-05T22:14:42.172200Z

probably doesn't matter. Can't reproduce it with

[{:a/a 1}
 {:b/b 2}
 {:c/c 2}]

vlaaad 2020-11-05T22:16:53.172500Z

regarding missing home/end, I'll think what I can do...

seancorfield 2020-11-05T22:19:33.172700Z

Maybe you can bind ctl-alt-left and ctl-alt-right to home/end?

vlaaad 2020-11-05T22:21:54.172900Z

it might interfere with some linux distros that use ctrl+alt+arrows to navigate between virtual desktops... that probably will require os-specific keybindings. I think it's inevitable, but I would prefer to do it later..

vlaaad 2020-11-05T22:22:47.173100Z

it would be great if you could make a repro for "over-nav" — I tried various big nested vectors of maps to no luck

seancorfield 2020-11-05T22:25:39.173400Z

Are you testing on a Mac?

vlaaad 2020-11-05T22:26:39.173600Z

I didn't, but I have access to a Mac. I'll try that tomorrow, it's too late here in Europe. Going to sleep now, I'll get back to you later!

seancorfield 2020-11-05T22:29:30.173800Z

Here's a small example that seems to have strange behavior:

[[1 2 3]
 [4 5 6]
 [7 8 9]]
With the cursor on the second [ (just before the 1), alt-right puts the cursor on the 3. If I do alt-down instead, the cursor ends up on the [ before the 7 -- skipping the second element of the vector. Is that what you would expect?

vlaaad 2020-11-05T22:31:18.174Z

no, Alt-right should go to 1 and alt+down should go to the [ before 4

vlaaad 2020-11-05T22:31:41.174200Z

hmmm

vlaaad 2020-11-05T22:32:16.174400Z

I remember you mentioning long time ago that fastest way to navigate for you was using alt arrows that scrolls by N rows or something

seancorfield 2020-11-05T22:32:33.174700Z

If I'm on the ] after the 3 and do alt-left, I end up on the outer [ rather than then inner [ which is also a bit of a surprise.

vlaaad 2020-11-05T22:32:46.174900Z

I remember it because it felt off since Reveal didn't have such a thing.

seancorfield 2020-11-05T22:33:03.175100Z

If I'm on that outer [ and do alt-right, I end up on the 2.

vlaaad 2020-11-05T22:33:49.175300Z

Maybe on mac Alt+arrow emits repeated key events?

seancorfield 2020-11-05T22:33:51.175500Z

If I'm on the 2 and do alt-right, I end up on the 1 (not the 3).

vlaaad 2020-11-05T22:34:19.175700Z

well, this is super weird

seancorfield 2020-11-05T22:34:49.175900Z

(and alt-right on the 3 takes me to the 1 🙂 )

seancorfield 2020-11-05T22:39:17.176100Z

I just confirmed I really am using 1.0.154, and I can see the output tracks (and highlights) the first element of each new result and scrolls as expected.

seancorfield 2020-11-05T22:39:42.176300Z

But otherwise, the alt-arrow keys are mostly behaving exactly the same on 1.0.137 and 1.0.154

seancorfield 2020-11-05T22:42:50.176500Z

And I just discovered that home is fn-alt-up and end is fn-alt-down -- but that's the same behavior on both 1.0.137 and 1.0.154 so I'm suspecting those are just macOS defaults... and maybe none of your key bindings are actually working on macOS?

seancorfield 2020-11-05T22:43:12.176700Z

Anyways, thank you for all you do on Reveal, and we can chat tomorrow.