Skip to content
Sublime Text 2/3 plugin for opening related files (e.g. test / implementation)
Python
Find file
Latest commit 93e4bbb Apr 4, 2013 @vojtajina Merge pull request #8 from phyllisstein/3
Adds compatability for Sublime Text 3
Failed to load latest commit information.
example
.gitignore Initial commit Feb 27, 2012
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
OpenRelated.sublime-project
Preferences.sublime-settings
README.md
converter.py
converter_test.py test fix Mar 12, 2013
open_related.py
package-metadata.json

README.md

OpenRelated (Sublime Text 2/3 plugin)

A plugin for quick navigation between related files (e.g. test/implementation) in awesome text editor - Sublime Text.

Instalation

Recommended way is using PackageControll package.

Or you can download the tarball and extract it to your ~/Library/Application Support/Sublime Text 2/Packages/OpenRelated.

Configuration

Check out the default configuration: https://github.com/vojtajina/sublime-OpenRelated/blob/master/Preferences.sublime-settings

Check out example project: https://github.com/vojtajina/sublime-OpenRelated/blob/master/example

You can override this configuration per project :-D

["*/test/*spec.js", "*/lib/*.js", "/abc/d/*.py"]
  • when editting /some/test/a.spec.js file, it will open (if file exists) /some/lib/a.js as well as /some/abc/d/a.py
  • when editting /other/lib/b.js, it will open /other/abc/d/b.py and /other/test/b.spec.js

Use back slashes on Windows

["*\\tpl\\*.html", "*\\js\\*.js"]

Defining key shortcut

By default, "open_related" is mapped to CMD+T, however you can easily change that, just add to your keymap preferences:

{ "keys": ["super+t"], "command": "open_related" }

Note, if you have multiple groups opened (split view), related file will be opened in next group.

Something went wrong with that request. Please try again.