Bug 337588 - [EditorMgmt] Editor should have "Close Tabs To The Right"
Summary: [EditorMgmt] Editor should have "Close Tabs To The Right"
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: All All
: P3 enhancement with 6 votes (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: greatfix, noteworthy
: 355470 464975 (view as bug list)
Depends on:
Blocks: 513050
  Show dependency tree
 
Reported: 2011-02-18 11:53 EST by Cory R. King CLA
Modified: 2017-03-03 06:02 EST (History)
12 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory R. King CLA 2011-02-18 11:53:11 EST
Build Identifier: 3.0.0.201102151705

In addition to "Close" / "Close Others" / "Close All", there should be a "Close Tabs To The Right".  It should behave like Chrome.

Why?

It is a pretty good timesaver in Chrome.  Often you dont want to close all your tabs, you just want to close a few.  

Reproducible: Always
Comment 1 Eric Moffatt CLA 2011-02-18 13:22:31 EST
I'm not sure about this one...

Why just 'to the right' and not 'to the left' as well ? 

Eclipse has traditionally struggled with Editor Management with many possibilities, none of which have been satisfactory to the majority of the community...

Note that Ctrl-Shift-E will get you a dialog that allows you to multiply select
and close specific editors.

Also, in e4 we allow any stack to contain either Views or Editors so the menus for all stacks should have identical abilities.

I'm not saying that we can't come up with other operations to make this type of management easier...two come to mind:

- Redock[All]: move any editors in a stack back into the primary data stack (i.e. the traditional Editor Stack).

- Close untouched editors: Closes any editor that has not been changed by the user (even editors that are not currently dirty but have been dirtied while open would apply).
Comment 2 Dani Megert CLA 2011-02-19 03:35:12 EST
(In reply to comment #1)
+1.
Comment 3 Cory R. King CLA 2011-03-02 17:17:10 EST
Hmm... didn't know about the CTRL+SHIFT+E "switch to editor" deal.

All I know is the "Close to right" in Chrome is fairly addictive.  I'd think all you need is "right" or "left".  At least in my case, I'll shuffle the tabs in chrome so that what I want closed is on the right.
Comment 4 Remy Suen CLA 2011-08-23 06:14:37 EDT
*** Bug 355470 has been marked as a duplicate of this bug. ***
Comment 5 Gregor Rosenauer CLA 2012-10-29 05:38:16 EDT
I just wanted to suggest an option to "Close Visible Tabs" - as often I know I have more tabs open, but can't see them as all space is taken up by tabs I don't need anymore, so I'd like to close the visible tabs to make room for non-visible tabs to check if I have some stuff left there...

I like the option "close untouched editors" in comment #1, maybe even better: close stale tabs (oldest/least used).

In any way, an option to "de-clutter" your workspace would be a great productivity enhancer and should be supported by the IDE in some way.
Comment 6 Jeffery Yuan CLA 2014-02-25 10:45:07 EST
Editors are used so frequently everyday. It would be great we can enhance its productivity.
Comment 7 Dave Daniels CLA 2014-03-13 13:49:21 EDT
Right click + close to right is much easier than Ctrl-Shift-E.
Comment 8 Jeremiah Orr CLA 2014-10-31 14:19:45 EDT
I find "Close Tabs to the Right" extremely useful in Chrome, and I am often disappointed when I right click on an editor tab and it isn't there. I would LOVE this.
Comment 9 Paul Webster CLA 2014-11-07 08:54:26 EST
See https://wiki.eclipse.org/Platform_UI/How_to_Contribute to contribute a Gerrit review for this functionality.

PW
Comment 10 Eclipse Genie CLA 2015-02-11 17:43:20 EST
New Gerrit change created: https://git.eclipse.org/r/41685
Comment 12 Lars Vogel CLA 2015-02-16 07:05:25 EST
Cool stuff Andrey, thanks for the contribution.
Comment 13 Lars Vogel CLA 2015-02-16 07:06:19 EST
Andrey, can you please create an entry for our N&N M6 via Gerrit?
Comment 14 Andrey Loskutov CLA 2015-02-16 07:14:37 EST
(In reply to Lars Vogel from comment #13)
> Andrey, can you please create an entry for our N&N M6 via Gerrit?
No, I can't :(
N&N git repo is not accessible via Gerrit.
I can prepare few screenshots and send you the patched page.
Comment 15 Lars Vogel CLA 2015-02-16 07:26:06 EST
(In reply to Andrey Loskutov from comment #14)
> (In reply to Lars Vogel from comment #13)
> > Andrey, can you please create an entry for our N&N M6 via Gerrit?
> No, I can't :(
> N&N git repo is not accessible via Gerrit.
> I can prepare few screenshots and send you the patched page.

Yes it is, I use Gerrit for N&N all the time, the only issue is that I cannot release them but I typically fetch the Gerrit review and push it directly. Here is the repo:
ssh://your_user@git.eclipse.org/gitroot/www.eclipse.org/eclipse/news.git
Comment 16 Andrey Loskutov CLA 2015-02-16 07:31:48 EST
(In reply to Lars Vogel from comment #15)
> (In reply to Andrey Loskutov from comment #14)
> > (In reply to Lars Vogel from comment #13)
> > > Andrey, can you please create an entry for our N&N M6 via Gerrit?
> > No, I can't :(
> > N&N git repo is not accessible via Gerrit.
> > I can prepare few screenshots and send you the patched page.
> 
> Yes it is, I use Gerrit for N&N all the time, the only issue is that I
> cannot release them but I typically fetch the Gerrit review and push it
> directly. Here is the repo:
> ssh://your_user@git.eclipse.org/gitroot/www.eclipse.org/eclipse/news.git

I have to correct: N&N git repo is not accessible FOR ME via Gerrit.

I've tried with M5 and I had no rights whatever way to push something to this repo. I think this was already discussed in some mailing list and the conclusion was that we don't need gerrit for N&N. :(
Comment 17 Lars Vogel CLA 2015-02-16 07:44:28 EST
(In reply to Andrey Loskutov from comment #16)
> I have to correct: N&N git repo is not accessible FOR ME via Gerrit. 
> I've tried with M5 and I had no rights whatever way to push something to
> this repo. I think this was already discussed in some mailing list and the
> conclusion was that we don't need gerrit for N&N. :(

Gerrit works fine for contributors for the N&N repo. See https://git.eclipse.org/r/#/c/40487

I suggest to continue this discussion via email, I can ensure you that it works, I think I pushed Gerrit changes from at least three different contributors for the last release.
Comment 18 Andrey Loskutov CLA 2015-03-19 17:35:21 EDT
Verified in I20150318-2000
Comment 19 Lars Vogel CLA 2015-04-20 03:14:06 EDT
*** Bug 464975 has been marked as a duplicate of this bug. ***
Comment 20 Stephen Sichina CLA 2016-03-21 10:31:20 EDT
+1, this is an essential feature of an IDE in my opinion.
Comment 21 Lars Vogel CLA 2017-03-03 06:02:03 EST
I opened Bug 513050, as the close on right should also be available if the chevron is visible.