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

PR: Add New/Open Notebook items to notebook context menu #409

Merged
merged 3 commits into from
Apr 4, 2023

Conversation

jitseniesen
Copy link
Member

Also, add a reference to the 'Zoom in/out' menu items in the welcome tab.

Fixes #174
Fixes #404

@jitseniesen jitseniesen added this to the v0.4.1 milestone Apr 1, 2023
@jitseniesen jitseniesen self-assigned this Apr 1, 2023
@@ -178,6 +178,9 @@ def setup(self):
section=NotebookMainWidgetOptionsMenuSections.Other,
)

# Context menu for notebooks
self.tabwidget.actions = [new_notebook_action, open_notebook_action]
Copy link
Member

Choose a reason for hiding this comment

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

I thought the idea was to add these actions to the context menu of NotebookWidget. I mean, it's not clear from the message in our welcome page that you have to right-click on top of the tabwidget to see those actions. Instead, it seems to imply that they will be displayed when right-clicking on that page.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ccordoba12 The idea is to release version 0.4.1 of the plugin with Spyder 5.4.3. That version will have the New/Open Notebook actions in the context menu that is displayed when you right-click anywhere on the page, because that is how it used to be in version 0.3.

Then, version 0.5 of the plugin which will be with Spyder 6 and Jupyter Lab 4 will display the Jupyter context menu when you right-click anywhere on the page, so it will not have the Spyder New/Open Notebook actions. As you say, the message on the welcome page will have to be changed to explain that you need to right-click on the hamburger icon.

At least, that is how I interpreted our discussion, but I am happy to change this.

Copy link
Member

Choose a reason for hiding this comment

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

That version will have the New/Open Notebook actions in the context menu that is displayed when you right-click anywhere on the page, because that is how it used to be in version 0.3.

Ok, sorry for the noise then. I thought those actions would only be displayed when doing a right click on top of the notebooks' tabwidget.

Then, version 0.5 of the plugin which will be with Spyder 6 and Jupyter Lab 4 will display the Jupyter context menu when you right-click anywhere on the page, so it will not have the Spyder New/Open Notebook actions.

Yeah, I understood that part.

At least, that is how I interpreted our discussion, but I am happy to change this.

Nop, that's fine.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @jitseniesen!

@jitseniesen jitseniesen merged commit 69ec7d5 into spyder-ide:0.4.x Apr 4, 2023
@jitseniesen jitseniesen deleted the context-menu branch April 4, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants