-
-
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
Add "close all but this" and "close all to the right" entries to the Editor context menu #2519
Conversation
@igordsm thanks for working on this :). Can you please post a screenshot of how the menu looks? Cheers |
Nice! However, I just ran @igordsm's version via Could a test be written to mimic this error? |
Hey @petebachant , I just notice the left/right thing and will update the PR in a few moments. About the behaviour of clicked vs selected tab, the same happens with the "Go to line" option. Is this expected? |
Hmmm funny, I think the correct behavior should be to affect the right clicked tab... so maybe we need to file a bug for the gotoline @ccordoba12? |
As far as I understand, both the code that I made and the code in gotoline depend on the currently selected tab. Maybe the solution could be activate the tab when using the right click? |
@igordsm, this needs a rebase or a merge with master. |
Conflicts: spyderlib/widgets/editor.py
@ccordoba12 I just merged with master and added a commit to activate tabs on right click. This way both gotoline and the new commands will affect the clicked tab. |
Please merge again with |
@ccordoba12 Remerged and both checks passed. Thank you. |
Can someone merge or look at this again, please? |
What happened with
Also, why not make |
@goanpeca The tabs are activated on right-click, so now "go to line" and the new options affect the clicked tab. |
@igordsm I see that you are making a PR from your master into spyder master. We normally work using branches. Did you take a look at these instructions? |
@igordsm ? |
@ccordoba12 , @Nodd @igordsm ? |
Looks good to me. |
Add "close all but this" and "close all to the right" entries to the Editor context menu
Fixes #2354
The menu items were added before the "new window" action.