-
-
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
Shortcut to go to Project pane is not working #12491
Comments
@dalthviz, could you verify that our default shortcuts shows the Projects pane on Windows or not? It works for me on Linux.
I don't understand what you mean by this. Please create an animated gif using the Licecap program and upload it here. |
so what I meant, is by pressing F10, there is currently a bug, that makes the splitter freeze (the splitter separating the console pane from the code pane). The only way to remove the freeze on the splitter is to reset to default layout. Doing so makes the project pane disappear. Closing and reopening the project does not bring it back. The only way to do so is by doing it manually. I don't know if that is the intended behavior thought. |
The thing with F10 probably refers to the bug in #11875 which should be fixed in the next release. The Ctrl+Shift+P shortcut does not do anything for me either. It is listed in the menu, so I did not redefine it. I sometimes get the message "QAction::eventFilter: Ambiguous shortcut overload: Ctrl+Shift+P" in the terminal where I start Spyder if I press Ctrl+Shift+P but not always. The other pane shortcuts all seem to work. This is on Debian Linux with the dev version of Spyder, master branch. |
Thanks @jitseniesen for the confirmation. I have two questions for you:
|
Another question:
|
Yes
Still present. Actually, I went back to 3.x and the problem is also present there. It seems to have appeared between 3.3.0 and 3.3.1 (ancient history!)
No, that fixes the problem. I tried out some stuff and found out that the problem only happens if I quit Spyder with a project opened and the Project pane closed, so that next time when you open Spyder the Project pane is not opened. Here is how I can reproduce from a clean install (meaning I delete the spyder config directory), using both 4.x and master:
Can you reproduce with these instructions? The difference with Spyder 3.3.0 is that it always opens the Project pane, even when you restart with the Project pane close. Thus, I suspect the cause may be PR #7546 by yours truly 😊 |
@ccordoba12 I was able to reproduce this (the shortcut not working) with the steps provided by @jitseniesen on Windows |
Great! Thanks for the confirmation @dalthviz!
Great to know. Then this one is for you @jitseniesen. |
I understand what's going wrong. The function @ccordoba12 What is the idea behind your commit 32496f7? Why do you want should actions in the Project menu switch to the Project pane? I want to make sure that my fix respect this. |
Previously new/open/close/delete project called .switch_to_plugin() and this latter function was overridden so that the plugin is only shown if the visible_if_project_open config option is set. This override broke the Ctrl+Shift+P shortcut (issue spyder-ide#12491). This commit replaces the .switch_to_plugin() override by a new .unmaximize() function and calls this on new/open/close/delete. As far as I can see, the unmaximize functionality is the only part of .switch_to_plugin() that is actually used on new/open/ close/delete, because the new/open/close/delete functions have code later to show or hide the Project plugin.
Previously new/open/close/delete project called .switch_to_plugin() and this latter function was overridden so that the plugin is only shown if the visible_if_project_open config option is set. This override broke the Ctrl+Shift+P shortcut (issue spyder-ide#12491). This commit replaces the .switch_to_plugin() override by a new .unmaximize() function and calls this on new/open/close/delete. As far as I can see, the unmaximize functionality is the only part of .switch_to_plugin() that is actually used on new/open/ close/delete, because the new/open/close/delete functions have code later to show or hide the Project plugin.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
The issue is with the project explorer shortcut that should be enabled with the shortcut ctrl+shift+P. This shortcut does not work when I am on a certain project and I have to go to the View-Panes to activate it.
Aside from this, as a side problem of pressing F10, which affects the layout of the screen. I need reset that layout to get the splitter unstuck. However, doing so results in the project explorer being hidden automatically. I found that closing Spyder and relaunching it from anaconda gave back the project explorer (but this doesn't work consistently). In the mean-time I am currently going to the View-Panes and re-selecting the project explorer every time I press F10 by mistake.
What steps reproduce the problem?
What is the expected output? What do you see instead?
Toggle of project explorer pant
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
The text was updated successfully, but these errors were encountered: