-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: Allow plugins to hook into File > Open
#22564
base: master
Are you sure you want to change the base?
Conversation
Hello @jitseniesen! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-09-26 22:02:58 UTC |
@spyder-ide/core-developers I took the same approach as the previous PR by Carlos and I moved the code for |
Thanks for working on this @jitseniesen! I opened PR #22576 as a prerequisite of your work because we need to remove some dead code that referenced the open, new, save actions in the Editor. So, please rebase after that PR is merged. |
8a774ef
to
38bcb74
Compare
Thanks, done! |
As discussed in the last Core Team meeting:
|
Hi @jitseniesen. I see you're actively working on this feature at https://github.com/jitseniesen/spyder/tree/plugin-open-tmp if I'm not mistaken. Exciting! Is there a EDIT: I think I've found it: https://github.com/jitseniesen/spyder-notebook/tree/plugin-open. Never mind. |
This is work in progress, but I want some early feedback on design and stuff.
Description of Changes
This PR revives PR #8798. It provides a mechanism for plugins to register file extensions, so that if a user picks a file with that extension in the dialog window for
File > Open
, the file is opened in that plugin instead of the editor.Here is what it looks like, if the necessary changes are made in the Notebook plugin:
open-notebook.mp4
Issue(s) Resolved
Fixes #22354
Fixes #7794
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
Jitse Niesen