-
-
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: Go to Next / Previous console #20521
base: master
Are you sure you want to change the base?
Conversation
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.
Great idea @impact27! I left a couple of small suggestions for you, otherwise looks good to me.
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
a3f9b8a
to
a976ff6
Compare
@impact27, this is not working for me on Linux. I think you need to add these new shortcuts to the But perhaps @dalthviz knows better about it since he handled this when migrating the console to the new API. |
So, if I remember correctly, yes, I think the shortcuts need to be defined at:
Also, checking the PR, I noticed a couple of things that maybe need a check:
|
I think there's no need for the translation strings to match the action and shortcut names. What's important is that names and shortcuts coincide, which already do. |
What I meant to say is that to create the action icons, for example with the next action, instead of:
You need to do use: icon=self.create_icon('next'), Note that the icon string is full lower case, otherwise you will not get an icon (the As it is right now if you add the actions to, for example, the context menu you will get a red Out of topic, but thinking about this, maybe having an enum or class with constants that track the Spyder valid icons identifiers could be worthy? |
Ok, I see. Sorry for the confusion @dalthviz. |
Description of Changes
I couldn't find a keyboard shortcut to quickly switch consoles. So I added one.
Issue(s) Resolved
Fixes #
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: