leanprover / leanprover/vscode-lean4

RFC: collapsing hyps in infoview

Open
#652 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

RFC
Dominant language
TypeScript
Stars
313
Forks
104
Avg merge
1h 56m
Merged PRs (30d)
1

Description

When InfoView has many hypotheses, users have to scroll a lot to examine them. In particular some hypothesis are multil-line taking a lot of screen space. It would be nice if we could collapse multi-line hyps into one line when needed, similar to how it is done for goals (via a clickable triangle control next to the name).

FYI: this is what we have in proof-general model in Emacs for Coq, and I found it very handy.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the InfoView implementation and the existing goal-collapsing behavior in the VS Code extension. Add equivalent clickable-triangle collapsing for multiline hypotheses, and verify that expanded and collapsed hypotheses remain usable while reducing scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.