Zulip Chat Archive

Stream: lean4

Topic: InfoView selection UX


Patrick Massot (Jun 24 2024 at 16:27):

My teaching library uses the possibility to select things in the InfoView using Shift-click in VSCode. I noticed while watching new users that this workflow is rather confusing because the difference with regular “highlighting selection” is not clear. Would it be possible to prevent regular selection? It probably cannot be a permanent things because people use regular selection to copy-paste from the infoView (especially since the copy-paste menu is broken). But ideally widgets could disable it (or at least there would be an extension settings). @Marc Huisinga

Mario Carneiro (Jun 24 2024 at 20:53):

I don't think widgets should disable manual copy-paste

Patrick Massot (Jun 24 2024 at 20:54):

What do you propose then?

Mario Carneiro (Jun 24 2024 at 20:55):

I don't really have a proposal, but perhaps just plain clicking with some button-like effect on the selectable options?

Patrick Massot (Jun 24 2024 at 20:56):

I’m sorry, I have no idea what you mean.

Patrick Massot (Jun 24 2024 at 20:56):

What do you call “the selectable options”?

Mario Carneiro (Jun 24 2024 at 20:57):

the hypotheses, in your case?

Mario Carneiro (Jun 24 2024 at 20:57):

I'm not really sure what is selectable for your widget

Patrick Massot (Jun 24 2024 at 21:01):

A priori everything is selectable. And this is really not specific to my teaching widget. The current interface is confusing for everything that relies on shift-click selection.

Mario Carneiro (Jun 24 2024 at 21:02):

I'm saying that the issue is using shift-click for selection, this is really non-discoverable

Mario Carneiro (Jun 24 2024 at 21:02):

maybe throw up a banner saying "shift-click to select" when a widget is doing something with this

Mario Carneiro (Jun 24 2024 at 21:03):

if you use click to select I think that is more natural / discoverable although it is better with a button effect

Mario Carneiro (Jun 24 2024 at 21:04):

re: "a priori everything is selectable", perhaps so but not all widgets are doing things with all possible selectable items at all times

Mario Carneiro (Jun 24 2024 at 21:04):

most of the time shift-click does nothing and (even assuming people think to try it) people will get used to this and be thrown off when that's not the case

Patrick Massot (Jun 24 2024 at 21:13):

Oh I agree with this.

Patrick Massot (Jun 24 2024 at 21:14):

The widgets that use this mechanism say it, but this is clearly not enough.

Patrick Massot (Jun 24 2024 at 21:16):

I could try to use a bigger message, but this would not fix the issue that things that are selected by shift-click are very hard to distinguish from things that are selected as text.

Patrick Massot (Jun 24 2024 at 21:16):

Also keep in mind that several things can be shift-clicked (and this is crucial for my use case).

Mario Carneiro (Jun 25 2024 at 00:22):

I think the message should go before the goal view, not in the widget area

Mario Carneiro (Jun 25 2024 at 00:23):

for selecting multiple things without deselecting everything else I agree shift-click or ctrl-click is a good choice. People have probably seen this pattern elsewhere, for example selecting files in windows explorer

Patrick Massot (Jun 25 2024 at 01:12):

Except they expect Ctrl-click while Ctrl-click does something completely different.

Mario Carneiro (Jun 25 2024 at 01:15):

then maybe that's the first place to look for improvements...?


Last updated: May 02 2025 at 03:31 UTC