Page 1 of 1

Last window switching...

Posted: Wed Mar 11, 2009 7:09 am
by mromanch
I know there are command for WindowNext and WindowPrev, but what I would like is WindowLast. This command would go the the window that had been the topmost before the current. Activating it again would bring you back to the window that you just left.

In other words, WindowLast would just toggle between the same two windows until you changed the active window to a third window using one of the other methods.

An alternative would be to change the following behavior (I don't know if this behavior is the intended behavior or a bug):

* I have WindowNext mapped to Ctrl+Tab.
* Given 3 windows, if I visit them in order, as long as hold down the Ctrl key, each time I press tab I will visit the next window in the order. This is the behavior even if I pause in pressing the tab key for a long time, so long as I never release the Ctrl key.
* If I release the Ctrl key, the next time I hit Ctrl+Tab (invoke WindowNext) I go to the window that was previous to the current one in the original order, i.e. if I am on Window 3 when I start the sequence again, I will go to Window 2.
* Again, as long as I hold the Ctrl key, I will now cycle through the windows in this new order (with 3 windows this is exactly the reverse of the original order). Pausing with the Ctrl key held down does not effect the sequence at all.
* If instead of holding the Ctrl key, I release it after each press of the Tab key, the behavior changes to toggling between two windows exclusively.

I think that this should be the behavior even if you hold the Ctrl key, but you pause for half a second.

Posted: Wed Mar 11, 2009 9:35 am
by ben_josephs
I like it as it is.

I find it extremely useful that I can navigate through the documents in a TextPad session backwards and forwards in Z order (holding the <Ctrl> key down) until I find the one I want, pausing as long as I like at each one and without the danger of the editor stepping in and changing the Z order without my telling it to (by releasing the <Ctrl> key). I also find it useful that I can escape from the search at any time (by pressing the <Esc> key) without changing the Z order.

I would be most upset if this behaviour were changed.

Posted: Fri Mar 13, 2009 1:01 am
by mromanch
ben_josephs wrote:I like it as it is.

I also find it useful that I can escape from the search at any time (by pressing the <Esc> key) without changing the Z order.
I didn't know that other keys like Esc had any effect. I'll have to play around with that a bit. I can also understand that there a probably a lot of users (maybe most) that would not like the current feature to change.

Maybe it would be better if I describe what I want and then maybe the developers can figure out a way to do it without changing the existing behavior. (After all, I could always change the default behavior by mapping the one I want to the Tab, Shift+Tab keys.)

I frequently find myself needing to switch back and forth between only 2 of the documents I have open. Maybe because I'm comparing files, or maybe I'm copying code from one module to another. Now that I have the tab grouping I seem to do this even more. Anyway, I find I do it a lot (probably more than 50% of the time).

Right now the only way I have to ensure I switch only between these two files is to close all the other files I have open. This is a crummy work around. Once I close the other files, I loose the undo buffer for them. Not to mention, just because I'm mostly using 2 files, it doesn't mean I don't need to look at or change other files along the way. I just means that there are two files I am currently using the most.

Maybe there could be some way that I can pin the files I want down, i.e., allow me to right click the tabs and "pin" the files. Then only tab through pinned files. Another idea would be an ability to have more than 2 tab groups, and an ability to minimize tab groups. Then the tabbing behavior could be limited to non-minimized groups.