Zulip Chat Archive

Stream: general

Topic: vscode goal window


Johan Commelin (May 26 2021 at 08:51):

Is it possible to have a goal window that shows only the tactic state, and no messages etc...

I'm giving a talk later today, and I think that for a complete newbie there's quite a lot of disctraction in the goal window.
(Of course all that feedback is super useful to us power users, but I would like to have an extremely clean goal window for the talk.)

Gabriel Ebner (May 26 2021 at 08:51):

You can click on the triangles to collapse all parts of the infoview.

Johan Commelin (May 26 2021 at 08:52):

Yes, but if I move my cursor back and forth they auto-open again.

Johan Commelin (May 26 2021 at 09:00):

goal_window.gif

Johan Commelin (May 26 2021 at 09:02):

It would be really great if there was a way to only display the contents of Tactic state and just hide all the other bells and whistles (pin/reload buttons, widget/plain text option, messages).

Gabriel Ebner (May 26 2021 at 09:12):

I've just pushed a change that remembers the collapsed-state of the error messages. Properly adding support for a "distraction-free" infoview takes a bit more time. Making a custom build where the unwanted elements are just deleted is more feasible.

Johan Commelin (May 26 2021 at 09:13):

Great! Thank you so much!
If such a custom build is not too much trouble, that would be wonderful.

Patrick Massot (May 26 2021 at 09:19):

@Gabriel Ebner are you doing it or do you expect that Johan will do it?

Patrick Massot (May 26 2021 at 09:19):

I don't mind doing it but I need to know soon because I should be elsewhere already

Gabriel Ebner (May 26 2021 at 09:19):

If you could do it that would be awesome.

Patrick Massot (May 26 2021 at 09:37):

@Johan Commelin could you try installing lean-0.17.0.vsix?

Patrick Massot (May 26 2021 at 09:37):

You need to go to the extension panel and click on the menu in the upper right corner and choose Install from VSIX

Johan Commelin (May 26 2021 at 09:38):

Yes, let me try.

Johan Commelin (May 26 2021 at 09:42):

Works like a charm!

Johan Commelin (May 26 2021 at 09:42):

@Patrick Massot awesome, thank you so much!

Patrick Massot (May 26 2021 at 09:45):

For the record, here the diff with the official extension:

--- a/infoview/index.css
+++ b/infoview/index.css
@@ -90,4 +90,17 @@ select {
     background-color: var(--vscode-dropdown-background);
     color: var(--vscode-dropdown-foreground);
     border-color: var(--vscode-dropdown-border);
-}
\ No newline at end of file
+}
+
+/* Johan's hacks */
+div.mv2 {
+    display: none;
+}
+
+div.mv1 select {
+    display: none;
+}
+
+div.fr label, select {
+    display: none;
+}

Patrick Massot (May 26 2021 at 09:45):

I only used the VSCode web dev tools to inspect the infoview HTML+CSS and brutally switched off display in CSS.

Patrick Massot (May 26 2021 at 09:47):

Now I really need to run

Kevin Buzzard (May 26 2021 at 10:19):

Thank you Patrick! I will keep a copy of this one myself: I am speaking on Friday to a generalist (non-mathematician) audience about numbers and this version might be better for me too.

Kevin Buzzard (May 26 2021 at 10:20):

I'm assuming I can switch backwards and forwards between the two versions relatively easily? I quite like being able to see error messages :-)

Patrick Massot (May 26 2021 at 19:40):

How was your talk Johan?

Johan Commelin (May 26 2021 at 20:13):

I think it went really well. People liked the Lean demo, and I'm sure the uncluttered goal window contributed to that.

Johan Commelin (May 26 2021 at 20:13):

After the talk several people hang around and had some more questions. I've pointed several of them to NNG and/or zulip.

Patrick Massot (May 26 2021 at 20:18):

What did you show in the Lean demo (apart from the uncluttered goal window)?


Last updated: Dec 20 2023 at 11:08 UTC