IntelliJ Community . TabSwitchPlugin

 
TabSwitchPlugin 

HOME INDEX SEARCH CHANGES GO  

TabSwitch

Open files/tabs switcher: allows to quickly switch between tabs with less keystrokes than Recent Files. If the tab limit of IDEA is set to a value of 1 TabSwitch shows a recent file list instead. Open files are selected from a list in most recently used order. This works very much like Alt-Tab in Windows or Ctrl-Tab in Opera. By default the action is mapped to Alt-A, but another popular assignment is Ctrl-Tab.

This plugin was initialy developed by TimurZambalayev but I started fixing some bugs caused by openapi changes around April 2004. Since then I have taken over development.

-- BasLeijdekkers - 29 Dec 2005

TabSwitch screenshot

This plugin uses non-published IDEA API (com.intellij.ide.ui.UISettings).

Downloads, Bugs, RFEs:

Mail me, or post something in the plugin forum.

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.
  2. While holding Ctrl, pressing Tab will take you further down the list.
  3. While holding Ctrl and Shift, pressing Tab will take you up the list.
  4. The list cycles: (Tab) Slot N-1 -> Slot 0, (Shift-Tab) Slot 0 -> Slot N-1.
  5. While holding Ctrl, find with with Tab and Shift-Tab the file you want to switch to and release Ctrl.
  6. Pressing (and immediately releasing) Ctrl-Tab will take to the file you used before. If you do Ctrl-Tab again, you'll switch back.
  7. 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.
  8. Pressing Ctrl-Shift-Tab will take you to the least recently used file (Slot N-1).

Quickly switch between two tabs

Since version 1.0 TabSwitch has an action to quickly switch between the current and previous file, without showing the popup window. This action by default has no key mapped to it, but it is possible to assign a key via Settings > Keymap.

Always show recent file list instead of open files

TabSwitch has an option (since 1.5) to always show the recent file list instead of the currently open files, even if the tab limit is set to a value greater than 1. To enable this you need to start IDEA with the TabSwitch installed at least once. This creates a "tab_switch.xml" file in "$idea.config.path$/options". Shut down IDEA again and change the option SHOW_RECENT_FILES from "false" to "true". Now start up IDEA again and TabSwitch? shows a recent file list instead of only the open files.

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 TabSwitchPlugin.NextTab and TabSwitchPlugin.PreviousTab in All Actions->Other or All Actions->Plug-ins->TabSwitch. Change the mappings. See some restrictions below. See also http://www.intellij.com/docs/help/preferences/keymap.html

keystroke           plugin action id

Alt-A            TabSwitchPlugin.NextTab
Alt-Shift-A      TabSwitchPlugin.PreviousTab

Requirements for the mappings:

  1. NextTab. Only one of (Ctrl, Alt, Meta, AltGraph) + No Shift + KEY
  2. PreviousTab. The same combination as for NextTab but with Shift.

History

1.5 (#4095) - Dec 29, 2005

  • Added native IDEA look to popup window (thanks to Alexey Efimov).

  • Now uses same icons as on the editor tabs (see screen shot).

  • Added option to always show recent files even if tab limit is greater than 1 (see config/options/tab_switch.xml)

  • The plugin now uses Java 5 features and is retroweaved to work on jdk 1.4.2 and below.

1.0 (#4049) - Nov 21, 2005

  • Work around implemented for bug in IDEA which caused TabSwitch to display closed files in its list.

  • Made TabSwitch usable again for people who like to set the tab limit to 1. Tab limit of 1 is automatically detected and the number of files displayed in the popup is controlled by the "recent files limit" editor setting.

  • Added feature to quickly switch between two tabs (Thanks to Marc Juul Christofferson). This is a new SwitchBetweenTwoTabs action, which can be assigned a key.

0.7.4 (#3354) - Apr 28, 2005

  • TabSwitch shows all initially opened files after opening a project again.

0.7.3 (#3211) - Apr 28, 2005

  • Removed JDOM usage.

  • Made it compile again with the changed file type api.

  • Removed a possible memory leak when loading a new project.

0.7.2 (#3075) - Oct 29, 2004

  • Fixed for #3075 (Irida EAP) Should still work for at least #2008, but I haven't tested this -- BasLeijdekkers

0.7.1 (#2008) - Apr 13, 2004

  • Fixed for #2008 (Pallada EAP) by Bas Leijdekkers (API changes).

0.7 (#922) - Sep 10, 2003

  • Recompiled for #922 (API changes).

0.6.7 (#706, #876) - Aug 01, 2003

  • Bug [ 771147 ] Window position with multiple monitors.
  • Patch (by Alessandro Vernet) [ 777735 ] Center dialog on multiple monitor system.

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

IntelliJPluginWebForm
IntelliJPluginName: TabSwitchPlugin
IntelliJPluginVersion: 1.0
IntelliJPluginVendor: TimurZambalayev
IntelliJPluginBinary: http://sourceforge.net/projects/tz-ip/
IntelliJPluginSource: http://sourceforge.net/projects/tz-ip/
IntelliJPluginClassification:
TopicClassification: IntelliJPluginPackage
TopicShortDescription: 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).
TestedOnOS: OsWinXP
ShouldRunOnOS: AnyOS

Attachment: sort Action: Size: Date: Who: Comment:
TabSwitchScreenShot.jpg action 74918 07 May 2003 - 16:22 TimurZambalayev  
TabSwitch-0.3-screenshot.jpg action 102361 12 May 2003 - 18:47 TimurZambalayev  
TabSwitch-0.4-screenshot.jpg action 88537 14 May 2003 - 20:11 TimurZambalayev  
TabSwitch-0.5-screenshot.jpg action 100404 17 May 2003 - 00:10 TimurZambalayev  
TabSwitch.jar action 20810 21 Apr 2007 - 08:47 BasLeijdekkers Binary for TabSwitch 1.7.1
TabSwitch_src.zip action 14008 21 Apr 2007 - 08:48 BasLeijdekkers Source for TabSwitch 1.7.1
TabSwitch-1.0-screenshot.png action 17942 21 Nov 2005 - 23:32 BasLeijdekkers  
TabSwitch-1.5-screenshot.png action 13587 29 Dec 2005 - 14:27 BasLeijdekkers  

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.