-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Notebook Outline-View and Breadcrumbs. #13562
Conversation
+ jupyter show Table of contents menu item working Signed-off-by: Jonah Iden <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a significant difference between the generated outline in vscode and Theia. Theia shows all cells (both markdown and code) in a flat list. In vscode, only markdown cells are shown, but in a hierarchical tree (depending on the level of heading):
Also, the label for those outline nodes isn't just the raw text, but the markdown rendered to plain text. Elements like **Hello**
or `Hello`
just become Hello
.
packages/notebook/src/browser/contributions/notebook-actions-contribution.ts
Outdated
Show resolved
Hide resolved
packages/notebook/src/browser/contributions/notebook-label-provider-contribution.ts
Outdated
Show resolved
Hide resolved
packages/notebook/src/browser/contributions/notebook-ouline-contribution.ts
Outdated
Show resolved
Hide resolved
packages/notebook/src/browser/contributions/notebook-ouline-contribution.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Jonah Iden <[email protected]>
Signed-off-by: Jonah Iden <[email protected]>
As said in the followups markdown based hirachy and only showing markdown cells in outline is coming with a later PR |
packages/notebook/src/browser/contributions/notebook-label-provider-contribution.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Jonah Iden <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, works for me 👍
packages/notebook/src/browser/contributions/notebook-label-provider-contribution.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Mark Sujew <[email protected]>
What it does
this adds support for the outline view and breadcrumbs for the notebook editor.
Also makes the jupyter
Show Table of contents
menu item working in the main notebook toolbar since its only opening the outline view.How to test
Create or open a notebook and see the breadcrumbs showing all cells.
Trust the workspace and click
Show Table of contents (Outline View)
to reveal the outline view.Changing selection in editor or outline view should reflect respectivley
Follow-ups
There is currently no markdown based hirachy yet. That needs to be implemented later. Same as only showing code cells in the breadcrumbs and not in the outline view
Review checklist
Reminder for reviewers