reveal

chaos 2022-03-09T20:52:07.387359Z

Hi, it is common for my workflow to send deep data structures to reveal in bursts, and scroll up and down the output panel to locate interesting patterns to view:table in the Results Panel. Though once the results panel is open, it takes disproportional more space than the output panel, and hinders my experience considerably, since it can't be closed or resized and I have to work with an narrowed down output panel view. I think I only care to work with one reveal window. I can use always-on-top stickers with Shift+Enter as an alternative where to send the results at, but they are too obstructive since I have to switch back and forth other applications all the time, and they are getting on the way. I understand the result panel is not resizable by design as per this thread https://clojurians.slack.com/archives/CUDTFQ152/p1637523359082200, though this would have made my experience much smoother. Any other thoughts how to work around this? The other option I could think of is a new feature to have the pop up result window be a regular window rather than a sticker (say with a new key modifier alt+enter), so at least is not obstructing my desktop when switching apps, and perhaps dedicate it as the main target for any subsequent results. Thanks

vlaaad 2022-03-10T21:08:06.062299Z

Maybe you can try something like this?

(require '[vlaaad.reveal :as r])

(let [ui (r/ui :title "The Aside")]
  (r/defaction ::put-aside [x] 
    ^:vlaaad.reveal.ui/ignore-action-result #(ui x)))

vlaaad 2022-03-10T21:08:45.123149Z

that will open another window that you can submit values to from anywhere in the reveal using "put-aside" action

vlaaad 2022-03-10T21:16:39.314829Z

can you describe a bit more this pattern of submitting data in bursts and then looking for patterns?

chaos 2022-03-10T21:19:12.244549Z

Sure; say I have a script that sends a burst of ten seq maps of various length into the output panel. So the output panel has ten seqmaps, which i want to scroll up and down until I find something of interest for my work

chaos 2022-03-10T21:20:54.300399Z

Say I want now to view:table the third of this seqmap; I right click at the opening square bracket, choose view:table. The results panel opens up, occupying more than half of the vertical space of the window, and displays the seqmap as a table

chaos 2022-03-10T21:22:53.253259Z

Now I would like to go back to the output panel and browse some more; my structures that I sent earlier to the output panel are large, and I effectively only have less than half the space to view them. I go find another seqmap iin the output panel and then right click, view:table, it goes to results panel. I might drill some more in the results panel, but eventually I go back ot the output panel, scroll some more, and repeat.

chaos 2022-03-10T21:23:32.270779Z

My problem is with the results panel occupying more than half the window when I want to back to the output panel and scroll to find my next seqmap to view

chaos 2022-03-10T21:25:16.694779Z

I think given that I am working in one window, I would have liked the option to resize the results panel, so that when I go back to the output panel and scroll, I have a much wider viewport to do so; my seqmap I sent to the output panel are large and having a small viewport ot scroll hinders my workflow. Does this perhaps explains it a little better?

chaos 2022-03-10T21:26:42.888249Z

Perhaps as an alternative (if not complementary) to how I think of an improvement is to have a close button for the results panel, so at least if I want to go back to the results panel and scroll back and forth, I could get the full window length back for the output panel with a click of a button

vlaaad 2022-03-10T21:29:29.794529Z

but you can press Escape to close the results panel?

chaos 2022-03-10T21:32:17.397329Z

ah ok, I didn't realize that is the case. If I have multiple results sent to the results pane (say 3), pressing ESC will close the the last one,r esults pane wills till be open but remaining results will be 2 in history (not sure what the right terminology is here)

chaos 2022-03-10T21:32:55.528699Z

so If I press ESC once more, result pane is still open, but there is only one result in history, pressing ESC once more will close the result pane

chaos 2022-03-10T21:33:52.637279Z

I've tried pressing ESC once before, but the results pane didn't close, I must have had multiple results already in there. I didn't realise that was the case that will eventually close it

chaos 2022-03-10T21:34:39.856959Z

As per doc: In results panel: • Use Ctrl ← and Ctrl → to switch tabs in results panel; • Use Ctrl ↑ to open result panel’s tab tree that provides a hierarchical overview of all tabs in this panel, where Backspace can be used to close views; • Use Esc to close the tab

chaos 2022-03-10T21:35:42.224469Z

So I guess the last bullet point can be improved to say something if there is only one tab when pressing Esc, the results pane will close

chaos 2022-03-10T21:36:12.462139Z

Anyhow, this will do for my use case, thanks!

👍 1
walterl 2022-03-09T22:36:26.485509Z

To open data in a new, resizable window, pass it to Reveal like this: (r/inspect data :always-on-top false)

chaos 2022-03-10T07:45:14.421989Z

The issue is not with the original window that I send the data and displayed in the output panel, but with viewing/navigating the data in the results panel below. Here is an example of the two panels taken from the documentation, the results panel can't be resized or closed