ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Open Related

by vojtajina ST3

Sublime Text 2/3 plugin for opening related files (e.g. test / implementation)

Details

  • 2013.04.04.16.45.07
  • github.​com
  • github.​com
  • 11 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 2K
  • Win 978
  • Mac 763
  • Linux 375
Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

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.