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
This plugin uses non-published IDEA API (com.intellij.ide.ui.UISettings).
Downloads, Bugs, RFEs:
Mail me, or post something in the plugin forum.
- 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.
- While holding Ctrl, pressing Tab will take you further down the list.
- While holding Ctrl and Shift, pressing Tab will take you up the list.
- The list cycles: (Tab) Slot N-1 -> Slot 0, (Shift-Tab) Slot 0 -> Slot N-1.
- While holding Ctrl, find with with Tab and Shift-Tab the file you want to switch to and release Ctrl.
- Pressing (and immediately releasing) Ctrl-Tab will take to the file you used before. If you do Ctrl-Tab again, you'll switch back.
- 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.
- Pressing Ctrl-Shift-Tab will take you to the least recently used file (Slot N-1).
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.
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.
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()")
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:
- NextTab. Only one of (Ctrl, Alt, Meta, AltGraph) + No Shift + KEY
- PreviousTab. The same combination as for NextTab but with Shift.
- 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.
- 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.
- TabSwitch shows all initially opened files after opening a project again.
- Made it compile again with the changed file type api.
- Removed a possible memory leak when loading a new project.
- Fixed for #3075 (Irida EAP) Should still work for at least #2008, but I haven't tested this -- BasLeijdekkers
- Fixed for #2008 (Pallada EAP) by Bas Leijdekkers (API changes).
- Recompiled for #922 (API changes).
- Bug [ 771147 ] Window position with multiple monitors.
- Patch (by Alessandro Vernet) [ 777735 ] Center dialog on multiple monitor system.
- RFE [ 768735 ] Fixed selection background.
- Bug [ 742726 ] Startup exceptions.
- 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).
- 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.
- "RFE [ 737847 ] Add background when selected back". See also (todo) "RFE [ 737865 ] Ability to change the color of the selected background"
- 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).
- Icons.
- Fixed a small bug. A harmless assertion failure after pressing the second Ctrl.
- MRU open files/tabs switcher.
-- TimurZambalayev - May 02, 2003
|
|