Tabdir

Compatible with all products except MPS
24.12.2012
15 883

Awesome replacement for IDEA's 'Show directory in editor tabs for non-unique filenames'. If you have same named files in different directories this plugin will allow you to have directory names added to tab labels. It only shows path differences so if you have "blog/controllers/index" and "news/controllers/index" it will add either [blog] or [news]. In setting tab 'Tabdir' you can control how prefixes will be formatted.

Per-project configuration allow specify different formatting rules for each directory in project. To enable per-project configuration enable "Use per project configuration" checkbox(see screenshot №3) and reopen settings window(need close with Ok or Apply buttons). After this you will find 'Tabdir' configuration in project section(screenshot №4) in which different configurations can be specified.

Note: that you should turn off IDE Settings → Editor tabs → Show directory in editor tabs for non-unique filenames.

Download plugin

Version

Update date

Recent change notes

  • 1.1 Add possibility to configure tab title format.
  • 1.2 Fixed NPE for files with no path(in memory).
  • 1.3 Add possibility to configure per project format for directories.
  • 1.3.1 Share plugin to all IntelliJ Platform products.
  • 1.4 Fixed NPE(was in phpstorm), update description.
  • 1.5 Tabdir-4 issue fixed, copyright updated
  • 1.6 Tabdir-9, Tabdir-10, Tabdir-11 issues fixed
  • 1.6.1 Fix for IDEA 12
  • 1.6.2 IDEA 12(EAP) release only: fixed Tabdir-15
  • 1.6.3 Rebuild in java1.6
  • 1.6.4 fixed Tabdir-16

General usage instructions

1. Install 2. Configure name reducing and processed file extensions 3. Open file with non-unique(in project) short name and see editor tab label Plugin create prefix of differences in pathes of opened files with non-unique names