---++++ Description.

MRU open files/tabs switcher (like Alt-Tab in Windows, Ctrl-Tab in Opera). By default mapped to Alt-A (another popular assignment is Ctrl-Tab).

Screenshot:
[[http://www.intellij.org/twiki/pub/Main/TabSwitchPlugin/TabSwitch-0.5-screenshot.jpg]]

This plugin uses non-published IDEA API (com.intellij.util.ImageLoader).

---++++ Downloads, Bugs, RFEs:
http://sourceforge.net/projects/tz-ip/

---++++ Usage.

   1 Press Ctrl-Tab. You'll see a panel similar to the Recent Files panel - Ctrl-E. The panel will have all open files/tabs/editors. At the top you'll have the most recently used file (the one you're editing). The second one will be the file you opened just before, etc.
   1 While holding Ctrl, pressing Tab will take you further down the list.
   1 While holding Ctrl and Shift, pressing Tab will take you up the list.
   1 The list cycles: (Tab) Slot N-1 -> Slot 0, (Shift-Tab) Slot 0 -> Slot N-1.
   1 While holding Ctrl, find with with Tab and Shift-Tab the file you want to switch to and release Ctrl.
   1 Pressing (and immediately releasing) Ctrl-Tab will take to the file you used before. If you do Ctrl-Tab again, you'll switch back.
   1 If you changed your mind and don't want to switch, press any key (except of course Ctrl, Shift, Tab), for example, an arrow or with Tab and Shift-Tab return to Slot 0.
   1 Pressing Ctrl-Shift-Tab will take you to the least recently used file (Slot N-1).

---++++ How to deploy.

   * Copy the jar file (e.g. <nop>TabSwitch.jar) to the plugins directory ($IDEA_HOME/plugins).
   * Restart IDEA.

---++++ Relevant posts/requests:

http://www.intellij.net/forums/thread.jsp?forum=11&thread=943&message=2818 ("ctrl-tab cycling of editor tabs")
http://www.intellij.net/tracker/idea/viewSCR?publicId=2681 ("REQUEST: ctrl-tab editor cycling, using MRU (most recently used) Algorithm")
http://www.intellij.net/tracker/idea/viewSCR?publicId=10392 ("Control + TAB")

Development related:

http://www.intellij.net/tracker/idea/viewSCR?publicId=12514 ("OpenAPI. Removed fileType.getIcon()")

---++++ Key Mappings.

How to change the mapping. Go to Options->Keymaps. Find <nop>TabSwitchPlugin.NextTab and <nop>TabSwitchPlugin.PreviousTab in <nop>AllActions->Other. Change the mappings. See some restrictions below. See also [[http://www.intellij.com/docs/help/preferences/keymap.html]]

<verbatim>
keystroke           plugin action id

Alt-A            TabSwitchPlugin.NextTab
Alt-Shift-A      TabSwitchPlugin.PreviousTab
</verbatim>

Requirements for the mappings:
   1 <nop>NextTab. Only one of (Ctrl, Alt, Meta, <nop>AltGraph) + No Shift + KEY
   2 <nop>PreviousTab. The same combination as for <nop>NextTab but with Shift.

---++++ History limit option (<nop>TabSwitchApplicationComponent.historyLimit).

It's the number of recent files retained in the list even if their editors were closed.
By default set to 1 (the behavior as before with the exception for 0 or 1 open files;
0 files - Alt-A will open the file you recently closed; 1 file - you'll see the list with 1 file).
If you want the old functionality set historyLimit to 0.
If you set it to, say, 15, you'll have the list close to what you have in Ctrl-E.

See also HowToSetAnOption.

---++++ How to build
   1 Specify the location of $idea.home in build.properties
   1 ant clean main.

---++++ History.

---+++++ 0.6.3 (#706, #856) - Jul 09, 2003

   * RFE [ 768735 ] Fixed selection background.

---+++++ 0.6.2 (#701, #816) - May 24, 2003

   * Bug [ 742726 ] Startup exceptions.

---+++++ 0.6.1 (#701, #816) - May 23, 2003

   * Log statements.

---+++++ 0.6 (#701, #816) - May 23, 2003

   * RFE [ 740231 ] The action should be mapped by default to Alt-A.
   * RFE [ 741983 ] Support #816.
   * RFE [ 738180 ] Please support separate configurable item limit (historyLimit).

---+++++ 0.5 (#701, #815) - May 16, 2003

   * Bug [ 738275 ] NPE with tab limit set to 1.
   * Bug [ 738536 ] Sometimes the list has more entries than open files.
   * RFE [ 735038 ] Icons with locks for read-only files.

---+++++ 0.4 (#701, #813) - May 14, 2003

   * "RFE [ 737847 ] Add background when selected back". See also (todo) "RFE [ 737865 ] Ability to change the color of the selected background"

---+++++ 0.3 (#701, #813) - May 12, 2003

   * RFE [ 735039 ] Show somehow VCS status.
   * No background. See the screenshot. See also RFEs "[ 736554 ] Background for an icon when selected" and "[ 736556 ] Option to have background for the selected item" (not sure about this one).

---+++++ 0.2 (#701, #813) - May 07, 2003

   * Icons.
   * Fixed a small bug. A harmless assertion failure after pressing the second Ctrl.

---+++++ 0.1 (#701, #813) - May 02, 2003

   * MRU open files/tabs switcher.


-- TimurZambalayev - May 02, 2003
