Editor tab reordering

There are two old and opened SCR regarding editor tabs reordering :

http://www.intellij.net/tracker/idea/viewSCR?publicId=2618
http://www.intellij.net/tracker/idea/viewSCR?publicId=3563

Wouldn't it be interesting to be able to reorder the tabs of the files that
are currently opened ?
We already have ALT+arrow to cycle through the currently opened files.
But sometimes, if the file we'd like to browse is not near the one that is
currently selected, we have to cycle through the files. It's sometimes a bit
painful when you work on several files at the same time.
There is a workaround that consists in closing a file and reopen it next to
another one.
But it's not really convenient.

Those SCRs are still opened. But nothing has been implemented yet to close
those requests.

What do you think of editor tab reordering ?
With a shortcut or directly with a drag'n'drop with the mouse ?

Guillaume


21 comments

Drag and drop would be great. TopStyle (an HTML/XHTML/XML/CSS editor I am
using) has that feature and it is very convenient.

Amnon

"Guillaume Laforge" <glaforge@reflexe.fr> wrote in message
news:b3fjtt$coh$1@is.intellij.net...

There are two old and opened SCR regarding editor tabs reordering :

>

http://www.intellij.net/tracker/idea/viewSCR?publicId=2618
http://www.intellij.net/tracker/idea/viewSCR?publicId=3563

>

Wouldn't it be interesting to be able to reorder the tabs of the files

that

are currently opened ?
We already have ALT+arrow to cycle through the currently opened files.
But sometimes, if the file we'd like to browse is not near the one that is
currently selected, we have to cycle through the files. It's sometimes a

bit

painful when you work on several files at the same time.
There is a workaround that consists in closing a file and reopen it next

to

another one.
But it's not really convenient.

>

Those SCRs are still opened. But nothing has been implemented yet to close
those requests.

>

What do you think of editor tab reordering ?
With a shortcut or directly with a drag'n'drop with the mouse ?

>

Guillaume

>
>


0

I just wish that you could have the tabs order themselves into MRU order.
Then, if two files weren't "close" to each other, you could cycle over to
the one you want, and then it would become the "MRU", and cycling BACK woudl
be a one keypress operation (since it was the next-most-recently-used).
This would be very familiar to anyone used to Windows fast task switcher
(Alt-Tab) or other windows apps like MSDev (Ctrl-Tab).

"Guillaume Laforge" <glaforge@reflexe.fr> wrote in message
news:b3fjtt$coh$1@is.intellij.net...

There are two old and opened SCR regarding editor tabs reordering :

>

http://www.intellij.net/tracker/idea/viewSCR?publicId=2618
http://www.intellij.net/tracker/idea/viewSCR?publicId=3563

>

Wouldn't it be interesting to be able to reorder the tabs of the files

that

are currently opened ?
We already have ALT+arrow to cycle through the currently opened files.
But sometimes, if the file we'd like to browse is not near the one that is
currently selected, we have to cycle through the files. It's sometimes a

bit

painful when you work on several files at the same time.
There is a workaround that consists in closing a file and reopen it next

to

another one.
But it's not really convenient.

>

Those SCRs are still opened. But nothing has been implemented yet to close
those requests.

>

What do you think of editor tab reordering ?
With a shortcut or directly with a drag'n'drop with the mouse ?

>

Guillaume

>
>


0

i'd agree with the MRU tab ordering scheme, I actually switched IDEs onetime in the past to get the MRU ordering back. It's very useful for me.

0


"Paul Bradshaw" <pbradshaw@vignette.com> a ?crit dans le message de news:
b45g8r$4d8$1@is.intellij.net...

I just wish that you could have the tabs order themselves into MRU order.
Then, if two files weren't "close" to each other, you could cycle over to
the one you want, and then it would become the "MRU", and cycling BACK

woudl

be a one keypress operation (since it was the next-most-recently-used).
This would be very familiar to anyone used to Windows fast task switcher
(Alt-Tab) or other windows apps like MSDev (Ctrl-Tab).


In fact, what annoys me with automatic tab reordering (MRU for instance), is
that it is not really predictable where tabs will be. Well, it IS
predictable, but when I switch from one file to another witl ALT+Arrow, I
know exactly to which file I want to go. But sometimes, ooops, the tabs
order changed ! Oh what happened ? Oh yes, true, the tabs got reordered
because that or that file is now the most recently used. Isn't it painful to
see that happen ?
And what do you mean exactly by MRU ? Most recently "viewed" ? Most recently
"edited" ?
I often switch between two files : the first one I'm editing, and the second
one, just for browsing the code to know how to call certain methods, and so
on...
But other times, I'm editing two files side by side.
So we should first settle on what MRU means exactly.
Moreover, if they can make us reorder manually the tabs, it will be much
easier for JetBrains to be able to add MRU reordering after that.
I'd be glad if we could do both MRU reordering and manual reordering.

Guillaume


0


"Paul Bradshaw" <pbradshaw@vignette.com> a ?crit dans le message de news:
b45g8r$4d8$1@is.intellij.net...

I just wish that you could have the tabs order themselves into MRU order.
Then, if two files weren't "close" to each other, you could cycle over to
the one you want, and then it would become the "MRU", and cycling BACK

woudl

be a one keypress operation (since it was the next-most-recently-used).
This would be very familiar to anyone used to Windows fast task switcher
(Alt-Tab) or other windows apps like MSDev (Ctrl-Tab).


By the way, in the features forum, Vladimir just replied that tab reordering
will be implemented in Aurora.
:-D great news isnt'it ?

Guillaume


0

In fact, what annoys me with automatic tab reordering (MRU for instance),

is

that it is not really predictable where tabs will be. Well, it IS
predictable, but when I switch from one file to another witl ALT+Arrow, I
know exactly to which file I want to go. But sometimes, ooops, the tabs
order changed ! Oh what happened ? Oh yes, true, the tabs got reordered
because that or that file is now the most recently used. Isn't it painful

to

see that happen ?


Not painful at all. In fact, it works a lot better/easier/faster than the
current tab method. If I had to pick one thing that was fundamentally
flawed in IDEA, it's the "Editor Tab" concept and how it works.

And what do you mean exactly by MRU ? Most recently "viewed" ? Most

recently

"edited" ?


Most recently brought to the top. Note that holding down the Alt key while
repeatedly tapping the left or right arrows will not update the "MRU" status
of any editors... only once you release the Alt key would the new displayed
editor become the Most Recently Used (and the one you were previously
working in before Alt-arrowing would be the one you'd jump back to with a
simple Alt-arrow).

This works better than the current "Back/Foward" ability we have (though I
don't want to lose that It's useful in its own right!) because with the
Back/Foward, you have to remember "where you are" and whether the previous
editor you were in was "forward" or "back". With an MRU system, you don't
have to remember anything. The editors form a simple stack.

Again, this is exactly like MSDev's Ctrl-Tab/Ctrl-Shift-Tab, and Window's
Alt-Tab/Alt-Shift-Tab features. They're phenominally useful, and would
augment the current IDEA navigation schemes wonderfully.

I often switch between two files : the first one I'm editing, and the

second

one, just for browsing the code to know how to call certain methods, and

so

on...
But other times, I'm editing two files side by side.


Well, the MRU tab handling addresses the first case perfectly. It's the
best solution for that frequent scenereo.

Right now, it's impossible to edit two files "side by side" in IDEA, so that
isn't an issue, is it? :)

I'd be glad if we could do both MRU reordering and manual reordering.


I see no conflict between having an MRU ability and being able to manually
reorder the tabs. Of course, using the MRU ability, you can easily (if
sometimes tediously) reorder them just by activating the tabs you want...
they'll pop up to the top of the stack as activated, pushing the rest down
the stack.


0

This works better than the current "Back/Foward" ability we have (though I
don't want to lose that! It's useful in its own right!) because with the
Back/Foward, you have to remember "where you are" and whether the previous
editor you were in was "forward" or "back". With an MRU system, you don't
have to remember anything. The editors form a simple stack.

>

Again, this is exactly like MSDev's Ctrl-Tab/Ctrl-Shift-Tab, and Window's
Alt-Tab/Alt-Shift-Tab features. They're phenominally useful, and would
augment the current IDEA navigation schemes wonderfully.


How's that different from Ctrl+E (View/Recent files) other than the fact
that you could pop it up and navigate it with a single key stroke? Ctrl+E
is, esentially, an Alt+Tab, it's just that you have to call it with a
different key stroke.

Which is good, in my opinion. With Alt+Tab, the moment you release the keys
you will bring the selected application to front. There is no way to change
your mind and not replace the current window (other than navigating back to
it in the list). With Ctrl+E, you just press Esc and you're back where you
were if you decided not to jump elsewhere.

Count the quick search feature in (start typing once you have the list up),
and I think the functionality we have is better than Windows' or MSDev's.

Just my 2 cents.
Andrei


0

It's significantly different in that Ctrl-E pops up a list (which you can't
easily navigate without moving your hands to the mouse or the arrow keys)
and then you have to press enter (which, if you right hand is on the mouse,
means moving your left hand all the way across the keyboard, or your right
hadn off the mouse). In short, it's very inconvenient and slow compared to
the Ctrl-Tab/Alt-Tab methods I've discussed.

As for changing your mind, just release, and then instantly alt-tab back.
It's still faster than Ctrl-E. Or you could just cycle around until you get
to your file again and the order won't be changed. Maybe not faster, but
still convenient as you haven't had to really move your hands as much.

I use Ctrl-Tab/Alt-Tab all the time. I know about Ctrl-E, but rarely if
ever use it because it's so inconvenient. If Ctrl-E were modified so that
after popping up the list, the list was numbered (such as in the 'surround
with' list) so you could just pop directly to a file by hitting a number,
that'd be an improvement that MIGHT make Ctrl-E more usable. But it still
wouldn't be as good, fast, and efficient as Ctrl-Tab/Alt-Tab.

So no, the functionality is not ion any way better than what Windows/MSDev
has. It's significantly worse in terms of time, effeciency, and
hand-motions required.

"Andrei Oprea" <aoprea@creditwave.com> wrote in message
news:b488sp$vjb$1@is.intellij.net...
>

How's that different from Ctrl+E (View/Recent files) other than the fact
that you could pop it up and navigate it with a single key stroke? Ctrl+E
is, esentially, an Alt+Tab, it's just that you have to call it with a
different key stroke.

>

Which is good, in my opinion. With Alt+Tab, the moment you release the

keys

you will bring the selected application to front. There is no way to

change

your mind and not replace the current window (other than navigating back

to

it in the list). With Ctrl+E, you just press Esc and you're back where you
were if you decided not to jump elsewhere.

>

Count the quick search feature in (start typing once you have the list

up),

and I think the functionality we have is better than Windows' or MSDev's.

>

Just my 2 cents.
Andrei

>
>


0

Regarding using Alt-Tab on a Windoze machine:

As for changing your mind, just release, and then instantly alt-tab back.
It's still faster than Ctrl-E. Or you could just cycle around
until you get to your file again and the order won't be changed.


Even easier: Go back using the Shift button (without releasing the Alt button)
Still easier: Hit Escape without before releasing the Alt button.

0

By the way, in the features forum, Vladimir just
replied that tab reordering
will be implemented in Aurora.


But it is still not there !
Please, please, please, implement drag'n drop tab reordering.

Guillaume Laforge

0

But it is still not there !
Please, please, please, implement drag'n drop tab reordering.


-1 from me, because I definitely don't need it (the opened files change
to often)

Tom

0

Thomas Singer wrote:
>> But it is still not there !
>> Please, please, please, implement drag'n drop tab reordering.


-1 from me, because I definitely don't need it (the opened files change
to often)

Tom

Exactly my point. Too much wasted time trying to keep things ordered.
I want to code. I'd rather have auto sorting by name, non case
sensitive, and have that be an option to turn on or off.

R

0

-1 from me, because I definitely don't need it (the opened files change
to often)

>

Tom


It doesn't mean it's not useful for others :-D

Exactly my point. Too much wasted time trying to keep things ordered.
I want to code. I'd rather have auto sorting by name, non case
sensitive, and have that be an option to turn on or off.


Currently nothing is ordered, so you don't have to order anything of course.
And if it's implemented, you don't have to order the tabs if you don't feel
like !

If it were to be sorted by name, imagine you want to work on AbstractAction
and SomeAction, and you have 15 files opened, then you'd have to hit
CTRL-ALT-LEFT or RIGHT 7-8 times before arriving on the right file
That's a pain...
If it's MRU, why not, that's better than nothing.
And of course, everything should be optional. ;)

Guillaume Laforge


0

>>>-1 from me, because I definitely don't need it (the opened files change
>>>to often)

It doesn't mean it's not useful for others :-D


Correct.

Currently nothing is ordered, ...


Wrong. It keeps the order in which the files are opened (temporal order).

Tom

0

Currently nothing is ordered, ...

Wrong. It keeps the order in which the files are opened (temporal order).


That's right.
And there is also the old trick of closing a file and reopen it at another
place.
A kind of hand-made reordering.
But there is no automatic reordering (MRU, Alphabetical)
And I miss the possibility of easily reorder them without going back to old
tricks :(
But well, I've lived without, I'll manage to continue so...

Guillaume Laforge


0

Speaking of the temporal "order"...

Can anybody give a rationale for the top -> bottom -> some middle row
ordering of tabs (in terms of where Alt-L/Alt-R take you)? Whenever Ctrl-E
cannot get me to a tab (which can happen if you haven't visited a tab for a
while), I've gotten in the habit of using the mouse to go to the tab because
I have trouble remembering where spatially Alt-Right/Alt-Left will take me.

In particular, I don't know the rules of where (Alt-L/Alt-R) will take you
when you are in the (first/last) tab in a row. What seems intuitive to me
(go to (next|previous) row, wrapping if necessary) doesn't work when there
are three or more rows. If there are three rows, then it seems to be top ->
bottom -> middle (which I now have memorized, albeit after a "WTF" or two).
If there are more than three rows then I have no idea.

I'm hoping that knowing the rationale behind the tab ordering will make it
easier to remember.

Kendall

"Thomas Singer" <idea@NOregnisSpam.de> wrote in message
news:bnoqe5$h8$1@is.intellij.net...

>

Currently nothing is ordered, ...

>

Wrong. It keeps the order in which the files are opened (temporal order).



0

If you want MRU tab switching, why not check the plugins page? This http://www.intellij.org/twiki/bin/view/Main/TabSwitchPlugin plugin has been around since May, 2003 and its wonderful. I have it mapped to ctrl-tab and ctrl-shift-tab

1

as for the tab re-ordering part, i agree you should be able to drag and drop the tabs to swap them around

0

You can use the following plugin: http://plugins.intellij.net/plugins/view/?id=TabReorder

>>TabReorder plugin allows to move editor tabs left/right using keyboard shortcuts.
>>- ControlAltShift+Left to move tab left;
>>- ControlAltShift+Right to move tab right;
>>- ControlAltShift+Up to make tab first;
>>- ControlAltShift+Down to make tab last.
>>It also adds appropriate menu points to the editor menu.
>>The plugin is open source (LGPL). The distribution can be found at http://www.smardec.com/products/idea.html.

0

Please sign in to leave a comment.