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

Add "close all but this" and "close all to the right" entries to the Editor context menu #2519

Merged
merged 5 commits into from
Jan 23, 2016

Conversation

igordsm
Copy link
Contributor

@igordsm igordsm commented Jul 5, 2015

Fixes #2354

screenshot from 2015-07-05 16 40 07


The menu items were added before the "new window" action.

@goanpeca
Copy link
Member

goanpeca commented Jul 5, 2015

@igordsm thanks for working on this :).

Can you please post a screenshot of how the menu looks?

Cheers

@goanpeca goanpeca changed the title Fix Issue #2354 : add "close all but this" and "close all to the right" Add "close all but this" and "close all to the right" Jul 5, 2015
@petebachant
Copy link

Nice!

However, I just ran @igordsm's version via bootstrap.py and these menu items did not work as expected. "Close all to the right" works more like "Close all to the left". Both "Close all to the right" and "Close all but this" do not keep the clicked tab, but instead keep the one that was in focus.

Could a test be written to mimic this error?

@igordsm
Copy link
Contributor Author

igordsm commented Jul 5, 2015

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?

@goanpeca
Copy link
Member

goanpeca commented Jul 5, 2015

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?

@igordsm
Copy link
Contributor Author

igordsm commented Jul 5, 2015

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?

@ccordoba12
Copy link
Member

@igordsm, this needs a rebase or a merge with master.

@igordsm
Copy link
Contributor Author

igordsm commented Oct 27, 2015

@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.

@ccordoba12
Copy link
Member

Please merge again with master. We had some problems with our testing machinery on Windows, but I think that's fixed now :-)

@igordsm
Copy link
Contributor Author

igordsm commented Nov 11, 2015

@ccordoba12 Remerged and both checks passed. Thank you.

@igordsm
Copy link
Contributor Author

igordsm commented Nov 23, 2015

Can someone merge or look at this again, please?

@goanpeca
Copy link
Member

@igordsm

What happened with

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?

Also, why not make Close all to the left?, just curious,...

@igordsm
Copy link
Contributor Author

igordsm commented Nov 30, 2015

@goanpeca The tabs are activated on right-click, so now "go to line" and the new options affect the clicked tab.
For some reason I never found a "close all left" option in other programs...

@goanpeca goanpeca self-assigned this Dec 6, 2015
@goanpeca
Copy link
Member

goanpeca commented Dec 6, 2015

@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?

@goanpeca
Copy link
Member

@igordsm ?

@goanpeca
Copy link
Member

@ccordoba12 , @Nodd @igordsm ?

@ccordoba12 ccordoba12 modified the milestones: v3.0beta3, v3.0 Jan 23, 2016
@ccordoba12
Copy link
Member

Looks good to me.

@ccordoba12 ccordoba12 changed the title Add "close all but this" and "close all to the right" Add "close all but this" and "close all to the right" entries to the Editor context menu Jan 23, 2016
ccordoba12 added a commit that referenced this pull request Jan 23, 2016
Add "close all but this" and "close all to the right" entries to the Editor context menu
@ccordoba12 ccordoba12 merged commit c34a615 into spyder-ide:master Jan 23, 2016
ccordoba12 added a commit that referenced this pull request Jan 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants