Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing a panel widget globally #5

Open
Vtec234 opened this issue Apr 11, 2023 · 0 comments
Open

Showing a panel widget globally #5

Vtec234 opened this issue Apr 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Vtec234
Copy link
Collaborator

Vtec234 commented Apr 11, 2023

Currently, the only supported ways to display a panel widget are to

Under the hood, all of these associate a panel widget with a particular syntactic span by storing an ofUserWidgetInfo node in the infotree. Unfortunately, this cannot work for choosing to display a widget globally, i.e. to always display it regardless of where in the file the cursor is. This is because infotrees are command-local, so cannot span more than one command by design. To support a command show_panel_widgets [MyDisplay] which enables MyDisplay globally, it seems an environment extension has to be added to Lean core and queried in getWidgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant