coq / vscoq

Visual Studio Code extension for Coq
MIT License
335 stars 68 forks source link

Ellipsis #834

Closed rtetley closed 2 months ago

rtetley commented 2 months ago

For larger goals, add an ellipsis mechanism. This leverages a depth parameter -> if depth of element > maxDepth then ellide. On top of that, boxes now have an included collapse, or expand mechanism. ellipsis

rtetley commented 2 months ago

ping @gares @ybertot

ybertot commented 2 months ago

How does it get triggered? If it is enough to click on a sub-expression to have it collapse/expand, I think this is too obtrusive. It should be an action that can be easily triggered, but not too easily.

gares commented 2 months ago

Wow!

One thing to think about is what happens when the goal changes.

I agree about the clicking. I think we should come up with a list of actions (considering future work) and then decide what goes to a simple click and what requires a modifier or a dedicated contextual panel/menu.

I can recall a few ideas (from the past), but I'm sure there are more:

Anyway, hiding too-large terms and having a click on "..." expand a few levels more seems something that can be immediately useful. All the rest may need a bit more thinking.

rtetley commented 2 months ago

Just added a feature so that the hover effect (dashed line) and the click only work if you are pressing the 'Alt' key.