Repository navigation
Show relevant constraints below goal type and context - #3716
Conversation
|
Another approach could be to have a separate buffer for displaying the constraints at all times. That way you wouldn't have to scroll down the (potentially long) list of all variables in scope. |
|
Good thing I saw this today! I was going to start working on it. If we merge #3723 it would be good to make the |
|
Yes, the check that the constraint mentions the interaction meta is just a first rough approximation. We could also replace it by a better heuristic to determine when a constraint is relevant to the current goal, if someone has an idea. |
|
As there are no negative comments, I'll go ahead and merge this now. Hopefully we'll get some feedback when people actually start to use it. |
I get annoyed endlessly by the fact that "show goal type and context" doesn't show any constraints. This is especially annoying for HITs in cubical agda. This patch just gathers all the constraints that mention the goal meta and displays them below the context.
I'm not sure if it is a good idea to always display the constraints as I do here, maybe there should be an extra flag and/or prefix to the goal commands to turn them on or off.