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

Make it so notebooks actually display the file name in their editor tab #5429

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

nstrayer
Copy link
Contributor

Addresses #2628.

Previously we just displayed the helpful name 'Positron Notebook' for every positron notebook 2.0 tab open. This updates this to just display the file name.

image

QA Notes

Steps:

  • Enable the positron.notebooks.usePositronNotebooksExperimental flag
  • Open an existing notebook
  • Check that the name is displayed properly

New notebooks should also work and just show untitled-*.ipynb (Although they still wont actually function until #4089 is fixed)

There's a chance that the code doesn't handle some weird file name edge cases but I couldn't find any.

@nstrayer nstrayer requested a review from seeM November 20, 2024 22:23
Copy link
Contributor

@seeM seeM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple, works well for me!

@nstrayer nstrayer merged commit 5b84ed9 into main Nov 22, 2024
3 checks passed
@nstrayer nstrayer deleted the positron-notebooks-file-name-display branch November 22, 2024 18:24
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants